Skip to content

/certificates/{id}/revoke

POST
/certificates/{id}/revoke
curl --request POST \
--url https://pki.example.com/api/v1/certificates/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/revoke \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "reason": "unspecified", "details": "example", "effectiveDate": 1, "generateCrl": false }'

Revoke a certificate

id
required
string format: uuid
Media typeapplication/json
object
reason
required
string
Allowed values: unspecified keyCompromise caCompromise affiliationChanged superseded cessationOfOperation certificateHold removeFromCRL
details
string
<= 500 characters
effectiveDate

Unix timestamp for effective revocation date

integer
generateCrl

Generate a new CRL after revocation

boolean

Default Response

Media typeapplication/json
object
id
string format: uuid
status
string
Allowed values: revoked
revocationDate
string format: date-time
revocationReason
string

Example

{
"status": "revoked"
}

Default Response

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Array<object>
object
field
string
message
string

Example generated

{
"error": {
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"message": "example"
}
]
}
}

Default Response

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Array<object>
object
field
string
message
string

Example generated

{
"error": {
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"message": "example"
}
]
}
}

Default Response

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Array<object>
object
field
string
message
string

Example generated

{
"error": {
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"message": "example"
}
]
}
}