

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 使用 AWS CloudHSM KMU 匯出公有金鑰
<a name="export-public-keys"></a>

使用 AWS CloudHSM key\_mgmt\_util (KMU) 中的 **exportPubKey**命令匯出公有金鑰。若要查看所有可用的選項，請使用 **exportPubKey -h** 命令。

以下範例將 RSA 公有金鑰匯出到名為 `rsa2048.pub.exp` 的檔案。

```
Command: exportPubKey -k 524294 -out rsa2048.pub.exp
PEM formatted public key is written to rsa2048.pub.key

Cfm3ExportPubKey returned: 0x00 : HSM Return: SUCCESS
```