Deletes a certificate from a Keystore Service (KSS) keystore. If the keystore is password-protected, you must provide Base64-encoded header values for the keystore and key passwords.
The following table summarizes the DELETE request parameters.
Name | Description | Type |
---|---|---|
keyAlias |
Alias for the certificate in the KSS keystore. | Query |
keystoreName |
Name of the keystore. | Query |
stripeName |
Name of stripe. | Query |
Media Types: | application/json |
The response body returns the status of the import operation, including:
Attribute | Description |
---|---|
"ERROR_CODE" |
If "STATUS" is set to "Failed" , provides the error code. |
"ERROR_MSG" |
If "STATUS" is set to "Failed" , provides the contents of the error message. |
"STATUS" |
Status of operation. For example, "Succeeded" or "Failed" . |
The following example shows how to delete a trusted certificate from the keystore by submitting a DELETE request on the REST resource using cURL. For more information, see "cURL Access".
curl -i -X DELETE -u username:password -H keystorePassword:password== -H keyPassword:password http://myhost:7001/idaas/platform/admin/v1/keystoreservice/certificates?"stripeName=myStripe&keystoreName=myKeystore&keyAlias=myAlias"
The following shows an example of the response header. For more about the HTTP status codes, see "Status Codes."
HTTP/1.1 200 OK
The following shows an example of the response body in JSON format.
{ "STATUS": "Succeeded" }