POST
/
api
/
v1
/
pki
/
certificates
/
{serialNumber}
/
revoke
curl --request POST \
  --url https://app.infisical.com/api/v1/pki/certificates/{serialNumber}/revoke \
  --header 'Content-Type: application/json' \
  --data '{
  "revocationReason": "UNSPECIFIED"
}'
{
  "message": "<string>",
  "serialNumber": "<string>",
  "revokedAt": "2023-11-07T05:31:56Z"
}

Path Parameters

serialNumber
string
required

The serial number of the certificate to revoke. The revoked certificate will be added to the certificate revocation list (CRL) of the CA.

Body

application/json
revocationReason
enum<string>
required

The reason for revoking the certificate.

Available options:
UNSPECIFIED,
KEY_COMPROMISE,
CA_COMPROMISE,
AFFILIATION_CHANGED,
SUPERSEDED,
CESSATION_OF_OPERATION,
CERTIFICATE_HOLD,
PRIVILEGE_WITHDRAWN,
A_A_COMPROMISE

Response

200 - application/json
Default Response
message
string
required
serialNumber
string
required

The serial number of the revoked certificate.

revokedAt
string
required

The date and time when the certificate was revoked