Skip to main content

Create A Key

Next, we need a key to encrypt the Docker images with.

If you haven't created an encryption key for this purpose before, you can create one via a call to the POST /v1/key REST API endpoint. Use curl to make a REST API request to create a key:

curl -X 'POST' \
'<TSB_APIendpoint>/v1/key' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <bearer_token>'\
-H 'Content-Type: application/json' \
-d '{
"label": "SecurosysEncKey01",
"algorithm": "RSA",
"keySize": 2048,
"attributes": {
"encrypt": true,
"decrypt": true
}
} '
warning

Make sure that the key flags encrypt and decrypt are set to true.

For connectivity details, see this page.

For more details on key creation, see the REST API documentation.

Get started withCloudHSM for free.
Other questions?Ask Sales.
Feedback
Need help?