Delete an oauth client trust certificate
delete
/oam/services/rest/ssa/api/v1/security/trust/oauthClient/certificate
based on the ID.
Request
Supported Media Types
- application/json
- application/x-www-form-urlencoded
Query Parameters
-
certID(required): string
ID of the certificate
Response
Supported Media Types
- application/json
200 Response
Success
Root Schema : ClientTrustCertificateResponse
Type:
Show Source
object
-
message:
string
sucess or failure message
-
response:
object ClientTrustCertificate
-
status:
string
HTTP response code
Nested Schema : ClientTrustCertificate
Type:
Show Source
object
-
id(required):
string
id of the certificate
-
issuerDN:
string
DN of the issuer of the certificate
-
notAfter:
integer
not afetr value of the certificate in milliseconds after 1970
-
notBefore:
integer
not before value of the certificate in milliseconds after 1970
-
publicCert(required):
string
Base64 encoded certificate value
-
subject:
string
Subject DN value of the certificate
-
x5t:
string
sha256 hash value of the certificate
404 Response
Certificate entry not found.
422 Response
Failed to delete the certificate. Invalid input.
Examples
cURL Sample Request
curl --location --request DELETE 'https://<admin-host>:<admin-port>/oam/services/rest/ssa/api/v1/security/trust/oauthClient/certificate?certID=ClientMTLS12' \ --header 'Accept: application/json' \ --header 'Authorization: Basic dGVzdDp0ZXN0='
cURL Sample Response
{ "status": "200", "message": "deleted", "response": { "publicCert": "MIIF3jCCA8agAwIBAgIJAPDbeYrRdWaVMA0GCSqGSIb3DQEBCwUAMHwxCzAJBgNVBAYTAklOMQswCQYDVQQIDAJLQTEMMAoGA1UEBwwDQkxSMQ8wDQYDVQQKDAZPcmFjbGUxDDAKBgNVBAsMA09BTTEQMA4GA1UEAwwHc2VydmVyMTEhMB8GCSqGSIb3DQEJARYSc2VydmVyMUBvcmFjbGUuY29tMB4XDTIxMDgxOTEwMzc0NVoXDTQxMDgxNDEwMzc0NVowfDELMAkGA1UEBhMCSU4xCzAJBgNVBAgMAktBMQwwCgYDVQQHDANCTFIxDzANBgNVBAoMBk9yYWNsZTEMMAoGA1UECwwDT0FNMRAwDgYDVQQDDAdzZXJ2ZXIxMSEwHwYJKoZIhvcNAQkBFhJzZXJ2ZXIxQG9yY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PbioXElGU38KOlPtNG97dHaIAsk1UQRajGtmbmLvrPGUMuVz+ukmGExe8oSbkDQKxF/f7cmdVNtCZbNIB2kOe/h+1BvDOfLlrgtIIcaRp96S9m0XwgteLcyKP8kz2zm3PnpAx4A4GlKRWmkuXRgahquaNzcxyXFZ5KqVIGCtI/GIadWn4PWnQW0rWOWrGjOUcmTHmhNc3j+tnflxmvcIknE45xuuBtgbVF3f+Yeyzr+snlrDA2EOf22KGzCPOAwk3LIRg0p1TLtWtYvJrAmHxIPnoVizszco0C+vjCnv3BTVrb+Iayx59ztYF1iSGaq7iP9bog0yGl6u/mWk++4OxVIK9y93Goy5RHEiBzcWbSOCNz8u2l42TMmwx3YY8lpDWbTSHRNd2CQ0LzGOpibppIMH8AKUchniZv8O/xkWfoejb6ydqZiRfNNw6S74hxmdVdhtWuGDt/Uh+i+bCxfsZmBNt/01i1rDsN79ZQgBMe0Dt/nbfy28Ob67a1G6QKS4/LOf1d9Tc7G", "privateKey": null, "x5t": "fh8td7r1ofcccd8mgm-vd9-qxnb6zbvvnpu5-wiu7hs", "identityDomainName": null, "clientName": null, "issuerDN": "EMAILADDRESS=server1@oracle.com, CN=server1, OU=OAM, O=Oracle, L=BLR, ST=KA, C=IN", "subject": "EMAILADDRESS=server1@oracle.com, CN=server1, OU=OAM, O=Oracle, L=BLR, ST=KA, C=IN", "notBefore": 1629369465000, "notAfter": 2260089465000, "certificateValue": null, "validInput": true, "id": "ClientMTLS12" } }