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 }'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 in issued state
Viewers cannot revoke certificates
Certificate not found