Revoke TLS certificate
Authentication
Parameters
Request body
{
"comment": "example",
"revocation_reason": "unspecified"
}Fields
Request example
curl --request POST \
--url 'https://api.regfish.com/tls/certificate/7K9QW3M2ZT8HJ/revoke' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'content-type: application/json' \
--data '{
"comment": "example",
"revocation_reason": "unspecified"
}'Responses
{
"success": true,
"code": 0,
"response": {
"id": "7K9QW3M2ZT8HJ",
"status": "pending",
"common_name": "example",
"product": "example",
"provider": "digicert",
"dns_names": [
"example"
],
"action_required": false,
"pending_reason": "validation_pending",
"pending_message": "The TLS certificate order is waiting for domain validation.",
"completion_url": "",
"organization_id": null,
"certificate_pem_available": false
}
}{
"success": false,
"message": "Invalid request or revocation reason",
"error": "Invalid request or revocation reason"
}{
"success": false,
"message": "Unauthorized",
"error": "Unauthorized"
}{
"success": false,
"message": "TLS certificate not found",
"error": "TLS certificate not found"
}{
"success": false,
"message": "The TLS certificate cannot be revoked in its current state",
"error": "The TLS certificate cannot be revoked in its current state"
}{
"success": false,
"message": "Unexpected error",
"error": "Unexpected error"
}{
"success": false,
"message": "Upstream TLS provider error",
"error": "Upstream TLS provider error"
}Become part of the community
The regfish DNS API is a great solution for developers who want to automate domains and DNS zones. Become part of the community and benefit from DNS automation. The DNS API is available free of charge to every regfish customer.