本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
安装和配置 Cloud HSM CLI
要与 AWS CloudHSM 集群HSM中的进行交互,您需要云端HSMCLI。
安装 AWS CloudHSM 命令行工具
连接到您的客户端实例并运行以下命令来下载和安装 AWS CloudHSM 命令行工具。有关更多信息,请参阅 启动 Amazon EC2 客户端实例。
使用以下命令下载并安装云端HSMCLI。
- Amazon Linux 2
-
x86_64 架构上的 Amazon Linux 2:
$
wget https://s3.amazonaws.com/cloudhsmv2-software/CloudHsmClient/EL7/cloudhsm-cli-latest.el7.x86_64.rpm
$
sudo yum install ./cloudhsm-cli-latest.el7.x86_64.rpm
关于ARM64架构的亚马逊 Linux 2:
$
wget https://s3.amazonaws.com/cloudhsmv2-software/CloudHsmClient/EL7/cloudhsm-cli-latest.el7.aarch64.rpm
$
sudo yum install ./cloudhsm-cli-latest.el7.aarch64.rpm
- Amazon Linux 2023
-
基于 x86_64 架构的亚马逊 Linux 2023:
$
wget https://s3.amazonaws.com/cloudhsmv2-software/CloudHsmClient/Amzn2023/cloudhsm-cli-latest.amzn2023.x86_64.rpm
$
sudo yum install ./cloudhsm-cli-latest.amzn2023.x86_64.rpm
关于ARM64架构的亚马逊 Linux 2023:
$
wget https://s3.amazonaws.com/cloudhsmv2-software/CloudHsmClient/Amzn2023/cloudhsm-cli-latest.amzn2023.aarch64.rpm
$
sudo yum install ./cloudhsm-cli-latest.amzn2023.aarch64.rpm
- CentOS 7 (7.8+)
-
x86_64 架构上的 CentOS 7:
$
wget https://s3.amazonaws.com/cloudhsmv2-software/CloudHsmClient/EL7/cloudhsm-cli-latest.el7.x86_64.rpm
$
sudo yum install ./cloudhsm-cli-latest.el7.x86_64.rpm
- RHEL 7 (7.8+)
-
RHEL在 x86_64 架构上有 7 个:
$
wget https://s3.amazonaws.com/cloudhsmv2-software/CloudHsmClient/EL7/cloudhsm-cli-latest.el7.x86_64.rpm
$
sudo yum install ./cloudhsm-cli-latest.el7.x86_64.rpm
- RHEL 8 (8.3+)
-
RHEL在 x86_64 架构上有 8 个:
$
wget https://s3.amazonaws.com/cloudhsmv2-software/CloudHsmClient/EL8/cloudhsm-cli-latest.el8.x86_64.rpm
$
sudo yum install ./cloudhsm-cli-latest.el8.x86_64.rpm
- RHEL 9 (9.2+)
-
RHEL在 x86_64 架构上有 9 个:
$
wget https://s3.amazonaws.com/cloudhsmv2-software/CloudHsmClient/EL9/cloudhsm-cli-latest.el9.x86_64.rpm
$
sudo yum install ./cloudhsm-cli-latest.el9.x86_64.rpm
RHEL9 关于ARM64架构:
$
wget https://s3.amazonaws.com/cloudhsmv2-software/CloudHsmClient/EL9/cloudhsm-cli-latest.el9.aarch64.rpm
$
sudo yum install ./cloudhsm-cli-latest.el9.aarch64.rpm
- Ubuntu 20.04 LTS
-
x86_64 架构LTS上的 Ubuntu 20.04:
$
wget https://s3.amazonaws.com/cloudhsmv2-software/CloudHsmClient/Focal/cloudhsm-cli_latest_u20.04_amd64.deb
$
sudo apt install ./cloudhsm-cli_latest_u20.04_amd64.deb
- Ubuntu 22.04 LTS
-
x86_64 架构LTS上的 Ubuntu 22.04:
$
wget https://s3.amazonaws.com/cloudhsmv2-software/CloudHsmClient/Jammy/cloudhsm-cli_latest_u22.04_amd64.deb
$
sudo apt install ./cloudhsm-cli_latest_u22.04_amd64.deb
Ubuntu 22.04 关于架构LTS:ARM64
$
wget https://s3.amazonaws.com/cloudhsmv2-software/CloudHsmClient/Jammy/cloudhsm-cli_latest_u22.04_arm64.deb
$
sudo apt install ./cloudhsm-cli_latest_u22.04_arm64.deb
- Ubuntu 24.04 LTS
-
x86_64 架构LTS上的 Ubuntu 24.04:
$
wget https://s3.amazonaws.com/cloudhsmv2-software/CloudHsmClient/Jammy/cloudhsm-cli_latest_u24.04_amd64.deb
$
sudo apt install ./cloudhsm-cli_latest_u24.04_amd64.deb
Ubuntu 24.04 关于架构LTS:ARM64
$
wget https://s3.amazonaws.com/cloudhsmv2-software/CloudHsmClient/Jammy/cloudhsm-cli_latest_u24.04_arm64.deb
$
sudo apt install ./cloudhsm-cli_latest_u24.04_arm64.deb
- Windows Server 2016
-
对于 x86_64 架构上的 Windows Server 2016,请 PowerShell 以管理员身份打开并运行以下命令:
PS C:\>
wget https://s3.amazonaws.com/cloudhsmv2-software/CloudHsmClient/Windows/AWSCloudHSMCLI-latest.msi -Outfile C:\AWSCloudHSMCLI-latest.msi
PS C:\>
Start-Process msiexec.exe -ArgumentList '/i C:\AWSCloudHSMCLI-latest.msi /quiet /norestart /log C:\client-install.txt' -Wait
- Windows Server 2019
-
对于 x86_64 架构上的 Windows Server 2019,请 PowerShell 以管理员身份打开并运行以下命令:
PS C:\>
wget https://s3.amazonaws.com/cloudhsmv2-software/CloudHsmClient/Windows/AWSCloudHSMCLI-latest.msi -Outfile C:\AWSCloudHSMCLI-latest.msi
PS C:\>
Start-Process msiexec.exe -ArgumentList '/i C:\AWSCloudHSMCLI-latest.msi /quiet /norestart /log C:\client-install.txt' -Wait
使用以下命令配置 Cloud HSM CLI。
为客户端 SDK 5 引导 Linux EC2 实例
-
使用配置工具指定集群中的 IP 地址。HSM
$
sudo /opt/cloudhsm/bin/configure-cli -a
<The ENI IP addresses of the HSMs>
为客户端 SDK 5 引导 Windows EC2 实例
-
使用配置工具指定集群中的 IP 地址。HSM
"C:\Program Files\Amazon\CloudHSM\bin\configure-cli.exe" -a
<The ENI IP addresses of the HSMs>
初始化集群
激活集群