WrapKey
This API wraps key.
URL
<http/https>://<host-name>:<Port>/protectappws/services/rest/key/wrapKey
Input Parameters
Parameters | Description |
---|---|
userName | User name (optional). |
password | Password associated with the user (optional). |
keyName | Name of the key to be wrapped. |
keyUseForWrap | Key to be used for wrapping. |
wrapFormatPadding | Padding format to be used for wrapping the key. This is an optional parameter. It is used for PKCS#1v2.1 and one of the following padding is used: SHA256, SHA384, and SHA512. |
certAlias | Client certificate alias for making SSL connections (optional). |
certPass | Password for the provided certificate alias (optional). |
Sample REST call for cxf
request
response
Unwrap Key using OpenSSL
The
WrapKey
API generates output in hex format. To unwrap the key, convert it into byte array and then write the Base64 encoded wrapped key to file as shown here.Based on the padding scheme, run the following command.
Read the unwrapped key bytes from the file. Convert the byte array into hex format as shown here.