API Documentation

Everything you need to know, in one place

Important: This function is currently supported for Comodo certificates only.

namecheap.ssl.revokecertificate

Revokes a reissued SSL certificate

This command is needed to revoke SSL certificates that were reissued and replaced in order to avoid usage of outdated certs with potentially compromised keys.

Example Request

http://api.sandbox.namecheap.com/xml.response?ApiUser=apiexample&ApiKey=123456123456&UserName=apiexample&Command=namecheap.ssl.revokecertificate&certificatetype=positivessl&ClientIp=192.168.1.1&CertificateID=8111110

Request Parameters

Global parameters are not shown here (for clarity), but they should be present in all requests.

Name Type MaxLength Required? Description
CertificateID Number 10 Yes ID of the certificate for you wish to revoke
Default Value: 1
CertificateType String 50 Yes Type of SSL Certificate
Possible values for Type parameter:

QuickSSL Premium, RapidSSL, RapidSSL Wildcard, PremiumSSL, InstantSSL, PositiveSSL, PositiveSSL Wildcard, True BusinessID with EV, True BusinessID, True BusinessID Wildcard, True BusinessID Multi Domain, True BusinessID with EV Multi Domain, Secure Site, Secure Site Pro, Secure Site with EV, Secure Site Pro with EV, EssentialSSL, EssentialSSL Wildcard, InstantSSL Pro, PremiumSSL Wildcard, EV SSL, EV SSL SGC, SSL123, SSL Web Server, SSL Webserver EV, EV Multi Domain SSL, Multi Domain SSL, PositiveSSL Multi Domain, Unified Communications.

Example Response

<?xml version="1.0" encoding="UTF-8"?>
<ApiResponse Status="OK">
<Errors />
<Warnings />
<RequestedCommand>namecheap.ssl.revokecertificate</RequestedCommand>
<CommandResponse Type="namecheap.ssl.revokecertificate">
<RevokeCertificateResult IsSuccess="true" ID="8111110" >
</CommandResponse>
<Server>API02</Server>
<GMTTimeDifference>--5:00</GMTTimeDifference>
<ExecutionTime>0.874</ExecutionTime>
</ApiResponse>

Response Parameters

Name Description
IsSuccess Indicates whether the certificate was revoked successfully
CertificateID A unique integer value that represents the certificate

Error Codes

Specifies the error codes that might be returned from this method

Number Description
4011331 Status is invalid
2011300 Wrong SSL certificate selection. The type provided is not supported by command.

Comments

We welcome your comments, questions, corrections and additional information relating to this article. Your comments may take some time to appear. Please be aware that off-topic comments will be deleted.

If you need specific help with your account, feel free to contact our Support Team. Thank you.

Need help? We're always here for you.

× Close