Session_Key_Export
This API exports key from the key manager.
URL
./Session_Key_Export
Input Parameters
Parameters | Description |
---|---|
keyname | Name of the key to be exported. |
keyformat | Format of the RSA or EC key to export. Valid values: PEM-PKCS#1 (default), PEM-PKCS#8, and PEM-SEC1 (optional). |
keytype | Type of the RSA key to export. Valid values are: Public or Private (optional). |
Note
When exporting private EC keys, the key format must be set to PEM-SEC1 or PEM-PKCS#8.
Sample SOAP Parameters
Symmetric Key
<prot:Session_Key_Export>
<keyname>aes256vt</keyname>
</prot:Session_Key_Export>
Output
Key bytes in Hex for AES Keys and HMAC keys, PEM encoded for RSA keys.
<ns1:Session_Key_ExportResponse xmlns:ns1="http://dsws.org/protectappws/">68711F03ABEE8B460509D5D54E7C70D3A78ABE21572746D31C433A797093B2CC</ns1:Session_Key_ExportResponse>
Sample SOAP Parameters
Asymmetric Key (private key)
<prot:Session_Key_Export>
<keyname>RSA_1024_Key_version</keyname>
<!--Optional:-->
<keyformat>PEM-PKCS#8</keyformat>
<!--Optional:-->
<keytype>private</keytype>
</prot:Session_Key_Export>
Output
Key bytes in Hex for AES Keys and HMAC keys, PEM encoded for RSA keys.
<ns2:Session_Key_ExportResponse xmlns:ns2="http://dsws.org/protectappws/">
-----BEGIN PRIVATE KEY-----
MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAMouxpL4GPXv09+Tmqwo354Ck08uFJPfSFLdAf+8VjOnTTBSkZuVdj2HLO7DOLsgev5Z4goetQ+YY3Th GM0veDSIoTZSkZhf341pHSp5hi4/a4uMu/uMfz/Gf5U2jselYduU+AyOG3Pyu1Uw......
-----END PRIVATE KEY-----
</ns2:Session_Key_ExportResponse>