keyExport
This API exports key from the key manager.
Note
Key bytes are Hex encoded for AES and HMAC keys; PEM encoded for RSA keys.
URL
<http/https>://<host-name>:<Port>/protectappws/services/rest/keyExport
Input Parameters
Parameters | Description |
---|---|
username | User name (optional). |
password | Password associated with the user (optional). |
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