POST Add KeyDef Entry
Adds a new keyDef entry to an existing key store on the Secure Proxy Configuration Manager.
With the createKeyDefEntries/{keyStoreName} method, you can add a new keyDef entry(ies) to an existing key store, on the Secure Proxy Configuration Manager.
This API method requires authentication, and therefore the authentication token generated at login must be passed in through the "X-Authentication" header.
| Method | Resource | URI | Description |
|---|---|---|---|
| POST |
keyStore |
/sspcmrest/sspcm/rest/keyStore/createKeyDefEntries/{keyStoreName} |
Creates a new keyDef entry within a predefined key store on the Secure Proxy Configuration Manager. |
| Parameter | Description |
|---|---|
XML |
The XML corresponding to creating a new keyDef entry definition within a predefined key store in Secure Proxy Configuration Manager |
HTTP KeyStore request
The following example shows the KeyStore request:
POST https://localhost:8443/sspcmrest/sspcm/rest/keyStore/
createKeyDefEntries/NM_Trusted
“X-Authentication”: “61504f4a524b48532b776a3467643733374b526368513d3d”
“X-Passphrase”: “XXXXXXX”
“Content-Type”: “application/xml”
XML corresponding to defining a new keyDef entry definition
Note:The XML corresponding to defining keyDef entries should
have an XML root element of keyDef.
Please refer to the Sample.java program in the sdk folder, for more information.XML KeyStore response
The following example shows the XML KeyStore response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><XmlResponse>
<httpCode>200</httpCode><httpStatus>OK</httpStatus><action>None</action>
<message>Certificate key created successfully.</message><messageLevel>
INFO</messageLevel><results/>