安装和配置 CloudHSM CLI
要与 AWS CloudHSM 集群中的 HSM 交互,您需要 客户端。
连接到客户端实例并运行以下命令,以下载和安装 AWS CloudHSM 命令行工具。有关更多信息,请参阅 启动 Amazon EC2 客户端实例,以便与 AWS CloudHSM 交互。
- 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 架构上的 Amazon 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 架构上的 Amazon 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 架构上的 Amazon 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+)
-
x86_64 架构上的 RHEL 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+)
-
x86_64 架构上的 RHEL 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+)
-
x86_64 架构上的 RHEL 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
ARM64 架构上的 RHEL 9:
$
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 架构上的 Ubuntu 20.04 LTS:
$
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 架构上的 Ubuntu 22.04 LTS:
$
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
ARM64 架构上的 Ubuntu 22.04 LTS:
$
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 架构上的 Ubuntu 24.04 LTS:
$
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
ARM64 架构上的 Ubuntu 24.04 LTS:
$
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
使用以下命令配置 CloudHSM CLI。
引导适用于客户端软件开发工具包 5 的 Linux EC2 实例
-
使用配置工具指定集群中 HSM 的 IP 地址。
$
sudo /opt/cloudhsm/bin/configure-cli -a
<The ENI IP addresses of the HSMs>
引导适用于客户端软件开发工具包 5 的 Windows EC2 实例
-
使用配置工具指定集群中 HSM 的 IP 地址。
"C:\Program Files\Amazon\CloudHSM\bin\configure-cli.exe" -a
<The ENI IP addresses of the HSMs>
初始化集群
激活集群