Cloudflare 中文文档
SSL/TLS
SSL/TLS
编辑这个页面
跳转官方原文档
Set theme to dark (⇧+D)

AWS cloud HSM


​​ Before you start

Make sure you have:


​​ 1. Import the public and private key to the HSM

Before importing the public key, extract it from the certificate provided by your CA. Place the contents of your private key in privkey.pem and then run the following (replacing certificate.pem with your actual certificate) to populate pubkey.pm.

Log in to the CloudHSM using a previously created crypto user (CU) account and generate a key encryption key that will be used to import your private key.

Referencing the key handle returned above, import the private and public key and then log out of the HSM:


​​ 2. Modify the gokeyless config file and restart the service

Now that the keys are in place, we need to modify the configuration file that the key server will read on startup. Change the object=mykey and pin-value=username:password values to match the key label you provided and CU user you created.

Open /etc/keyless/gokeyless.yaml and immediately after:

add:

With the config file saved, restart gokeyless and verify it started successfully.