Create a vault key
Changed onAdds a PEM-encoded RSA or EC public key used to encrypt token vault data for a vault-enabled directory. Keys must be at least 2048 bits (RSA) or 256 bits (EC). A directory can hold at most 5 vault keys.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
ID of the directory
Request body
PEM-encoded RSA or EC public key used to encrypt token vault data. Keys must be at least 2048 bits (RSA) or 256 bits (EC).
Example request
{
"public_key": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...\n-----END PUBLIC KEY-----"
}Response
A vault key
A PEM-encoded RSA or EC public key registered to encrypt token vault data for a token-vault enabled directory.
Contains a unique identifier used for this resource.
Contains a unique identifier used for this resource.
The PEM-encoded public key.
RFC 7638 JWK thumbprint (base64url-encoded SHA-256 digest) of the public key.
The asymmetric algorithm of the vault key.
Size of the key in bits (for example 2048 for RSA, 256 for EC P-256).
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity update date.
Example response
{
"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"directory_id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"public_key": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...\n-----END PUBLIC KEY-----",
"kid": "NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs",
"key_size": 2048,
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- info
endpoint added
- info