Exports a master encryption key.

POST {{cryptoEndpoint}}/20180608/exportKey

Exports a specific version of a master encryption key according to the details of the request. For their protection, keys that you create and store on a hardware security module (HSM) can never leave the HSM. You can only export keys stored on the server. For export, the key version is encrypted by an RSA public key that you provide.

Request Body

{"keyId"=>"<string>", "algorithm"=>"RSA_OAEP_AES_SHA256", "publicKey"=>"<string>", "keyVersionId"=>"<string>", "loggingContext"=>{"ullamco_d2d"=>"<string>", "dolore48c"=>"<string>"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;keyVersionId&quot;:&quot;\u003cstring\u003e&quot;,&quot;timeCreated&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;vaultId&quot;:&quot;\u003cstring\u003e&quot;,&quot;encryptedKey&quot;:&quot;\u003cstring\u003e&quot;,&quot;keyId&quot;:&quot;\u003cstring\u003e&quot;,&quot;algorithm&quot;:&quot;RSA_OAEP_SHA256&quot;}