Skip to content

Revoke a certificate

POST
/certs/tls/{id}/revoke
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.

id
required
string

Certificate ID

Media typeapplication/json
object
reason

RFC 5280 revocation reason code: 0=unspecified, 1=keyCompromise, 3=affiliationChanged, 4=superseded, 5=cessationOfOperation

number
<= 10
Example
0

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