Reissue Certificate API
Reissue a certificate; you can change the CSR, the domains and the domain validation methods.
To cancel a reissue after it has been submitted, use the Abort Reissue API.
Endpoint
POST /api/v1/certificate/reissue
Host:
...
Full URL
/api/v1/certificate/reissue
Request
Content-Type: application/json
Content-Length: 1121
{
"unique_id": "azgZqJGX", // Unique identifier, required, must not be duplicated. Prevents a reseller from submitting the same order twice; pass your order ID when the user clicks, to avoid duplicate charges
"service_id": "o91bZ", // Certificate ID, required; the `service_id` returned when the order was created
"domain_dcv": { // Domains + validation info; at least one of this and `csr` is required. Each domain maps to one validation type
"*.example.com": "dns", //⚠️Note: wildcards only support dns or email validation
"example2.com": "http", //⚠️Note: http/https use file validation on the subdomain; the file must be uploaded to the subdomain's own server. The base domain or other domains are not accepted
"example3.com": "https",
"sub.example4.com": "admin@example4.com" // ⚠️Note: email validation does not support whois mailboxes; only admin@, administrator@, postmaster@, webmaster@, hostmaster@ + <subdomain or base domain> combinations are supported
},
"csr": "---------BEGIN RSA CERTIFICATE REQUEST---------...", // CSR; at least one of this and `domain_dcv` is required. ⚠️Note: this is a CSR, not a private key or public key! RSA must be 2048 or 4096 bits; ECDSA must be P-256 or P-384
"contact_email": "subscriber@company.email", // Contact email, used to receive certificate validation notifications
"renew": 0, // Whether this is a renewal order; some CAs offer a bonus 30 days
"organization": "Example Digital Certificates Co., Ltd.", // Company name; required for `OV`, `EV`, `IV` certificate types. For OV certificates that have already been issued, company information cannot be changed (same below)
"organization_unit": "IT", // Company department; required for `OV`, `EV`, `IV` certificate types
"registered_address_line1": "123 Main Street, Shanghai", // Company registered address; required for `OV`, `EV`, `IV` certificate types
"serial_no": "31041485234546", // Company registration number; required for `OV`, `EV`, `IV` certificate types
"country": "CN", // Country of company registration; required for `OV`, `EV`, `IV` certificate types
"state": "Shanghai", // State/province of company registration; required for `OV`, `EV`, `IV` certificate types
"city": "Shanghai", // City of company registration; required for `OV`, `EV`, `IV` certificate types
"postal_code": "200100", // Company postal code; required for `OV`, `EV`, `IV` certificate types
"organization_phone": "021-10000001", // Company phone number; required for `OV`, `EV`, `IV` certificate types
"date_of_incorporation": "2019-01-01", // Company incorporation date; required for `OV`, `EV`, `IV` certificate types
"contact_name": "John Smith", // Contact name; required for `OV`, `EV`, `IV` certificate types
"contact_title": "Legal Representative", // Contact job title; required for `OV`, `EV`, `IV` certificate types
"contact_phone": "13800138000", // Contact phone number; required for `OV`, `EV`, `IV` certificate types
"notify_url": "https://system.com/order/6163/callback", // Order callback URL, used to receive order status change notifications. This URL must be reachable; see `Callback Notifications` for the notification parameters
"auto_include_www": true, // Whether to auto-include www. + @, optional; if omitted, the certificate's existing setting is kept. Supported by some products only; see "Auto-include www. + @" below
"dcv_scope": "base_domain" // DCV scope, optional. Supports base_domain (base domain) or apply_domain (subdomain/applied domain). Supported by some products only; see "DCV Scope" below
}
The domain keys in domain_dcv accept both punycode and the original Unicode form, e.g. xn--bcher-kva and bücher are equivalent; either form works.
Please note: domains in the API response (such as the keys of dcv and topleveldomain) are always returned in punycode; match against punycode.
auto_include_www controls whether a single-domain certificate automatically includes both www. and the base domain (@). Only some products (such as the AutoCert and Keymatic series) support this; unsupported products ignore the parameter.
- It only takes effect when the certificate has exactly 1 domain and that domain is the base domain or a
www.subdomain; it does not apply to wildcards, IP addresses or other subdomains. - If the field is omitted, the certificate's existing choice is kept (if it was never set, the default is to include); explicitly passing
true/falseoverrides it. - For example, submitting
example.com(orwww.example.com) with auto-include enabled makes the certificate cover bothexample.comandwww.example.com.
dcv_scope controls whether, during a reissue, the DNS validation host record is added under the base domain (root domain) or under the applied subdomain (full FQDN). Only some products (such as the AutoCert and Keymatic series) support this; unsupported products ignore the parameter.
- Allowed values:
base_domain: base domain scope. The validation record is added under the root domain.apply_domain: subdomain scope (applied domain scope). The validation record is added directly under the specific subdomain being applied for. The aliasfqdnis also accepted.
- Default: if the parameter is omitted, the certificate's existing scope setting is kept; if explicitly passed, it overrides the setting and the reissue is submitted to the CA with the new scope.
Response
- response
- errors
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1120
{
"success": true,
"message": "OK",
"data": {
"cost": 4208.01, // Amount charged for this reissue (changing domains may incur additional fees)
"service_id": "o91bZ",
"caid": "358174513",
"status": "pending",
"cert_pem": null,
"ca_pem": null,
"not_before": null,
"not_after": null,
"service_expires_at": "2025-12-31 23:59:59", // Order service expiration time
"dcv": {
"*.example.com": {
"type": "dns",
"subdomain": "*",
"topleveldomain": "example.com",
"status": "valid",
"dns": {
"type": "cname",
"hostname": "_310dcbbf4cce62f762a2aaa148d556bd",
"fullname": "_310dcbbf4cce62f762a2aaa148d556bd.example.com",
"value": "698d51a19d8a121ce581499d7b701668.bcbe3365e6ac95ea2c0343a2395834dd.20221122.comodoca.com"
}
},
"example2.com": {
"type": "http",
"subdomain": "",
"topleveldomain": "example2.com",
"status": "pending",
"http": {
"filename": "310dcbbf4cce62f762a2aaa148d556bd.txt",
"filecontent": "698d51a19d8a121ce581499d7b70166820221122\n20221122\ncomodoca.com",
"filepath": ".well-known/pki-validation/",
"filefullpath": ".well-known/pki-validation/310dcbbf4cce62f762a2aaa148d556bd.txt",
"url": "http://example2.com/.well-known/pki-validation/310dcbbf4cce62f762a2aaa148d556bd.txt"
}
},
"example3.com": {
"type": "http",
"subdomain": "",
"topleveldomain": "example3.com",
"status": "pending",
"http": {
"filename": "310dcbbf4cce62f762a2aaa148d556bd.txt",
"filecontent": "698d51a19d8a121ce581499d7b70166820221122\n20221122\ncomodoca.com",
"filepath": ".well-known/pki-validation/",
"filefullpath": ".well-known/pki-validation/310dcbbf4cce62f762a2aaa148d556bd.txt",
"url": "https://example3.com/.well-known/pki-validation/310dcbbf4cce62f762a2aaa148d556bd.txt"
}
},
"sub.example4.com": {
"type": "email",
"subdomain": "email",
"topleveldomain": "example4.com",
"status": "pending",
"email": {
"address": "admin@example4.com",
"available": [
"admin@example4.com",
"administrator@example4.com",
"webmaster@example4.com",
"postmaster@example4.com",
"hostmaster@example4.com",
"admin@email.example4.com",
"administrator@sub.example4.com",
"webmaster@sub.example4.com",
"postmaster@sub.example4.com",
"hostmaster@sub.example4.com"
]
}
},
"*.example5.com": {
"type": "dns",
"subdomain": "*",
"topleveldomain": "example.com",
"status": "valid",
"dns": {
"type": "cname",
"hostname": "_310dcbbf4cce62f762a2aaa148d556bd",
"fullname": "_310dcbbf4cce62f762a2aaa148d556bd.example.com",
"value": "698d51a19d8a121ce581499d7b701668.bcbe3365e6ac95ea2c0343a2395834dd.20221122.comodoca.com"
}
}
}
}
}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 50
{
"success": false,
"message": "Insufficient balance"
}
If any domains are replaced during the reissue, calling this API will cause the certificate to be revoked!