Request
Endpoint: !autoRevokeCertificate
https://secure.trust-provider.com/products/!autoRevokeCertificate
When autoRevokeCertificate is called for an order containing an issued certificate, the certificate will be revoked, unless includeInCRL=N, and marked as replaced.
| This does not apply to VMC/CMC products. |
When autoRevokeCertificate is called for an order containing a certificate that has not been issued, the certificate will be marked as rejected.
After calling autoRevokeCertificate with includeInCRL=N to mark the certificate as replaced, autoRevokeCertificate may subsequently be called again with includeInCRL=Y to change the certificate status from replaced to revoked and to include that certificate in the Certificate Revocation List (CRL).
| Not relevant for VMC/CMC products. |
Use the POST method for this endpoint.
Submit parameters in the x-www-form-urlencoded format.
Request parameters
The following table displays the required, optional, and conditional parameters.
| Parameter | Requirement | Type | Max.Length | Description | ||
|---|---|---|---|---|---|---|
|
required |
string |
64 chars |
Your account username. This value is case sensitive. |
||
|
required |
string |
128 chars |
Your account password. This value is case sensitive. |
||
|
conditional |
integer |
The order number of the account which contains SSL, IdA, PAC, CCC, CS certificates. Either |
|||
|
conditional |
integer |
16 digits |
The internal certificate ID to revoke or reject. A
Either |
||
|
conditional |
integer |
34 digits |
The serial number (hexadecimal string representation) of the certificate to revoke.
Either |
||
|
optional |
integer |
The account ID of a Reseller account.
|
|||
|
optional |
string |
1024 chars |
A comment describing the reason for revocation. This information is used for your reference only. No action by Sectigo will be taken based on this information. |
||
|
optional |
string |
Specifies the code for the revocation reason. The allowed values are:
For more information, see CPS. |
|||
|
optional |
char |
50 chars |
Specifies the type of certificate to revoke. The allowed values are:
|
||
|
optional |
integer |
Specifies the ID of the product to revoke for SSL, S/MIME, IdA, PAC, CCC, CS and MC. Use with the |
|||
|
optional |
char |
1 char |
(CS, CCC, and PAC certificates only) Specifies whether to include the revoked certificate in the CRL. The allowed values are:
If omitted, the value defaults to |
||
|
optional |
char |
1 char |
Indicates whether the revocation is a test operation. The allowed values are:
If omitted, the value defaults to |
||
|
optional |
integer |
1 digit |
Specifies the response format. The allowed values are:
If omitted, the value defaults to |
|
|
Sample request
curl --location 'https://secure.trust-provider.com/products/!autoRevokeCertificate' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'loginName=login_name' \
--data-urlencode 'loginPassword=login_password' \
--data-urlencode 'orderNumber=1234567890' \
--data-urlencode 'revocationReason=reason_for_revocation' \
--data-urlencode 'codeReason=0' \
--data-urlencode 'responseFormat=1'
Response
The request is successful when the server returns a response with the status code equals 0.
Any status code less than 0 indicates an error condition.
|
The list of codes and their descriptions can be found in Error codes. |
The response is text/plain when responseFormat=0 (by default).
If the status code is less than 0, the second line of the response is a textual representation of an error message.
autoRevokeCertificate can be instructed to return responses in the URL-encoding format by specifying responseFormat=1 in the request.
The MIME type will be application/x-www-form-urlencoded.
Error codes
The following table outlines error responses returned by the autoRevokeCertificate API endpoint.
Each error response consists of an errorCode and an errorMessage indicating why the request failed.
| Error Code | Error Message | Description |
|---|---|---|
|
|
The request must use |
|
|
The provided argument is not recognized. |
|
|
The required argument is missing from the request. |
|
|
The argument value does not meet validation requirements. |
|
|
An unknown error occurred. |
|
|
Authentication failed due to permission issues, incorrect login, locked account, expired password, or blocked IP. |
|
|
The request method should be |
|
|
The requested certificate is in a rejected state. |
|
|
The requested certificate is in a revoked state. |
|
|
The required certificate is in the process of being issued. When the |
|
|
The requested certificate is in the process of being issued. |
|
|
The certificate cannot be revoked because it has been replaced. |
|
|
The certificate cannot be revoked because it is expired. |
|
|
The maximum number of allowed API requests has been exceeded. Please wait before submitting additional requests. |
|
|
The certificate cannot be revoked in its current state. |
|
|
The certificate revocation failed due to a general error. |