Revoke a certificate
POST
/certs/tls/{id}/revoke
const url = 'https://api.krakenkey.io/certs/tls/example/revoke';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"reason":0}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.krakenkey.io/certs/tls/example/revoke \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "reason": 0 }'Revokes an issued certificate. A certificate whose renewal is still waiting for a slot (status ‘renewing’, renewalQueuedAt set) can be revoked too; the waiting renewal is dropped.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Certificate ID
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
reason
RFC 5280 revocation reason code: 0=unspecified, 1=keyCompromise, 3=affiliationChanged, 4=superseded, 5=cessationOfOperation
number
Example
0Responses
Section titled “Responses”Certificate revocation initiated
Certificate not issued (or not waiting to renew), or has no PEM data
Viewers cannot revoke certificates
Certificate not found
The certificate changed state meanwhile, for example its waiting renewal started