本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
安裝和設定 CloudHSM CLI
若要與 AWS CloudHSM 叢集HSM中的 互動,您需要雲端HSM CLI。
連線至您的用戶端執行個體,並執行下列命令來下載和安裝 AWS CloudHSM 命令列工具。如需詳細資訊,請參閱啟動 Amazon EC2用戶端執行個體以與 互動 AWS CloudHSM。
- Amazon Linux 2
-
Amazon Linux 2 (x86_64 架構):
$
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+)
-
CentOS 7 (x86_64 架構):
$
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 7 on x86_64 架構:
$
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 8 on x86_64 架構:
$
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
RHEL ARM64架構上的 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 架構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
ARM64 架構LTS上的 Ubuntu 22.04:
$
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
ARM64 架構LTS上的 Ubuntu 24.04:
$
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 SDK EC2執行個體
-
使用 設定工具指定叢集中 HSM(s) 的 IP 地址。
$
sudo /opt/cloudhsm/bin/configure-cli -a
<The ENI IP addresses of the HSMs>
為用戶端 5 啟動 Windows SDK EC2執行個體
-
使用 設定工具指定叢集中 HSM(s) 的 IP 地址。
"C:\Program Files\Amazon\CloudHSM\bin\configure-cli.exe" -a
<The ENI IP addresses of the HSMs>
初始化叢集
啟用叢集