NetBackup™ 命令参考指南
- 介绍
- 附录 A. NetBackup 命令
名称
nbhsmcmd — 在 NetBackup 中配置硬件安全模块
大纲
-configure
-list
-update -key -tokenpin -tokenmodule path_of_PKCS_module
On UNIX systems, the directory path to this command is /usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is install_pathNetBackup\bin\
描述
使用 nbhsmcmd 命令在 NetBackup 中配置硬件安全模块 (HSM)。
选项
- -configure
使用此选项,用户可以在 NetBackup 中配置硬件安全模块。
- -key
使用此选项可更新 NetBackup 配置,以在硬件安全模块中使用指定的密钥。使用此选项时,系统会要求您回答一些与密钥相关的问题。
只能将此选项与 -update 选项一起使用。
- -list
使用此选项,用户可以检索硬件安全模块的 NetBackup 配置。
- -tokenmodule
使用此选项可更新 NetBackup 配置,以便对硬件安全模块使用指定的 PKCS 库路径。可以将路径指定为命令行参数。
只能将此选项与 -update 选项一起使用。
- -tokenpin
使用此选项可更新 NetBackup 配置,以使用为硬件安全模块指定的 PIN。使用此选项时,系统会提示您输入 HSM 的 PIN。
只能将此选项与 -update 选项一起使用。
- -update -key -tokenpin -tokenmodule path_of_PKCS_module
使用此选项,用户可以更新硬件安全模块配置。必须将 -key、-tokenpin 和 -tokenmodule 选项与 -update 选项一起使用。
示例
示例 1:配置硬件安全模块。
nbhsmcmd -configure Enter the PKCS#11 library path that you have received from the Hardware Security Module: user/lib/libhsm.so Enter the token label of the Hardware Security Module: HSM_TEST_TOKEN Enter the token pin of the Hardware Security Module: XXXX Enter the identifier for the Hardware Security Module key: TEST_BACKUP Enter the key label of the Hardware Security Module: HSM_KEY_1 Enter the key algorithm name: AES-GCM The Hardware Security Module is successfully configured.
示例 2:用户更新硬件安全模块的 PIN。
nbhsmcmd -update -tokenpin Enter the token pin of the Hardware Security Module: abc@hsm123 The Hardware Security Module is successfully updated.
示例 3:用户更新硬件安全模块的 PKCS-11 实现库路径。
nbhsmcmd -update -tokenmodule /opt/softhsm3/lib/softhsm/libsofthsm2.so The Hardware Security Module is successfully updated.