keyExport
This API exports key from the key manager.
URL
<http/https>://<host-name>:<Port>/protectappws/services/rest/keyExport
Input Parameters
Parameters | Description |
---|---|
username | User name |
password | Password associated with the user. |
keyname | Name of the key to export. |
keyformat | Optional, format of the RSA or EC key to export. Valid values: PEM-PKCS#1 (default), PEM-PKCS#8, and PEM-SEC1. |
keytype | Optional, type of the RSA key to export. Valid values: Public or Private. |
certAlias | Client certificate alias for making SSL connections (optional). |
certPass | Password for the provided certificate alias (optional). |
Note
When exporting private EC keys, the key format must be set to PEM-SEC1 or PEM-PKCS#8.
Sample REST call for cxf
Symmetric Key
request
response
Asymmetric Key
request
response
Sample REST call for cxf
Output
Key bytes in Hex for AES Keys and HMAC keys, PEM encoded for RSA keys