Downloading Keys Created on Azure Vault to CCKM
Use the get /v1/cckm/azure/keys/{id}/download-public-key
API to download a public key in PEM format, for an asymmetric key.
Syntax
curl -k '<IP>/api/v1/cckm/azure/keys/{id}/download-public-key' -H 'Authorization: Bearer AUTHTOKEN' -H 'accept: application/json' --compressed
Here, {id}
represents the key ID.
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
Example Request
curl -k 'https://54.173.227.108/api/v1/cckm/azure/keys/12ne111/download-public-key' -H 'Authorization: Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiIyZTYxOTFjYi1hZGViLTQyM2EtODE2MS1iZjU2YmY0ZGRkMDIiLCJzdWIiOiJsb2NhbHw3MDQ5NzMzMy1lNDg3LTRiM2EtYTE2Yy04YjE0ZWU5NDdlYWQiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJjbGllbnRfaWQiOiI4MzdjODQwZC03NWRkLTRiNGYtYTMxOC03OWNiMTZjYTI0OGQiLCJjbGllbnRfbmFtZSI6ImFwaS1wbGF5Z3JvdW5kIiwiY2xpZW50X3R5cGUiOiJwdWJsaWMiLCJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiODM3Yzg0MGQtNzVkZC00YjRmLWEzMTgtNzljYjE2Y2EyNDhkIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6Ijk5YWUzYTQzLTVhYjctNGMyMi04YzZkLTg3YmQ1NDc4ODA2YiIsImlhdCI6MTcxNTA3Nzk4OSwiZXhwIjoxNzE1MDc4Mjg5fQ.0AKaWJP12oEhq9dBla2TAO8PLjnh1etp4gSss1QJGgMIGGi9BRY2NgdF4OAirq_DkC_v3iZmb54qXGOqcGVZAQ' -H 'accept: application/json' --compressed
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.