Skip to content
Cloudflare Docs

Google Cloud HSM

This tutorial uses Google Cloud HSM — a FIPS 140-2 Level 3 certified implementation.


Make sure that you have:


To set up the Google Cloud HSM, create a key ring and indicate its location.


Create a key, including the following information:

FieldValue
Key ring

The key ring you created in Step 2

Protection levelHSM
PurposeAsymmetric Encrypt

After creating a key ring and key, import the private key.


4. Modify your gokeyless config file and restart the service

Section titled “4. Modify your gokeyless config file and restart the service”

Once you’ve imported the key, copy the Resource name from the UI. Then, add this value to the gokeyless YAML file under private_key_stores.

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

Terminal window
sudo systemctl restart gokeyless.service
sudo systemctl status gokeyless.service -l