Callback Overview
When the certificate for a partner's order has been issued, the notify_url the partner submitted when placing the order (if this parameter is passed again during a reissue, it will be overwritten) will
receive the following request from our server:
- The partner should return a
200status code upon successful processing; otherwise, we will retry the notification every 5 minutes for 48 hours. - To make it easier to associate callbacks with orders in your own system, we recommend including the order ID in the path of
notify_url.
During local development, you most likely will not receive our callback requests, because our servers on the public Internet cannot reach the internal address running on your machine. You can use tools such as ngrok or cloudflare tunnel to expose your local internal address so that we can reach your local callback endpoint.
During integration and testing, if you are unsure about the parameters we send in callbacks, you can use Webhook.site to capture our requests.
Request and Response
- Certificate Issued Notification
- DCV Information Notification
- Response we require you to return on success
- Response you should return on failure (examples)
Content-Length: 587
Content-Type: application/json
{
"accessKeyId": "Trr1955DTkVVOBGE",
"service_id": "o91bZ",
"status": "issued", // Possible statuses: issued, dcv_generated, refunded
"keytype": "rsa",
"issued_cert": "-----BEGIN CERTIFICATE-----MIIGXzCCBEegAwIm3...-----END CERTIFICATE-----", // Certificate, truncated here, does not include the certificate chain
"issuer_cert": "-----BEGIN CERTIFICATE-----MIIGXzCCBEegAwIm3...-----END CERTIFICATE-----", // Issuer certificate (certificate chain)
"not_before": "2019-09-08 00:00:00.000000",
"not_after": "2019-12-07 23:59:59.000000",
"cert_x509_info": {
"name": "/CN=*.example.com",
"subject": {
"CN": "*.example.com"
},
"hash": "464e2b66",
"issuer": {
"C": "GB",
"ST": "XX",
"L": "LOCALE",
"O": "Comodo CA Limited.",
"CN": "Comodo EV CA(RSA)"
},
"version": 2,
"serialNumber": "318998335977003061451836453384575312644",
"serialNumberHex": "EFFCD8415335EB17BA6D9831E714E304",
"validFrom": "190908000000Z",
"validTo": "191207235959Z",
"validFrom_time_t": "1567900800",
"validTo_time_t": "1575763199",
"signatureTypeSN": "RSA-SHA256",
"signatureTypeLN": "sha256WithRSAEncryption",
"signatureTypeNID": 668,
"purposes": {
"1": ["1", "0", "sslclient"],
"2": ["1", "0", "sslserver"],
"3": ["1", "0", "nssslserver"],
"4": ["0", "0", "smimesign"],
"5": ["0", "0", "smimeencrypt"],
"6": ["0", "0", "crlsign"],
"7": ["1", "1", "any"],
"8": ["1", "0", "ocsphelper"],
"9": ["0", "0", "timestampsign"]
}
},
"nonce": "5d75400c79d89",
"timestamp": "2019-09-09T01:53:16Z",
"sign": "vmun1yvlYG50syrD2eswj/Ol0DxmnALICNTKJwFamCk="
}
Content-Length: 587
Content-Type: application/json
{
"accessKeyId": "Trr1955DTkVVOBGE",
"service_id": "o91bZ",
"status": "dcv_generated", // Possible statuses: issued, dcv_generated, refunded
"dcv": {
"1.domain.com": {
"type": "dns",
"subdomain": "1",
"topleveldomain": "domain.com",
"status": "pending",
"dns": {
"type": "TXT",
"hostname": "_dcv",
"fullname": "_dcv.domain.com",
"value": "_02xx0420371417qqwxyww0tgvhq3h0ogam7zzjsixr42fa4w77r18b2de"
},
"http": {
"filename": "dcv.txt",
"filecontent": "_22xx0420371417qqwxyww0tgvhq3h0ogam7zzjsixr42fa4w77r18b2de",
"filepath": ".well-known/pki-validation/",
"filefullpath": ".well-known/pki-validation/dcv.txt",
"url": "http:\/\/1.domain.com/.well-known/pki-validation/dcv.txt"
},
"https": {
"filename": "dcv.txt",
"filecontent": "_22xx0420371417qqwxyww0tgvhq3h0ogam7zzjsixr42fa4w77r18b2de",
"filepath": ".well-known/pki-validation/",
"filefullpath": ".well-known/pki-validation/dcv.txt",
"url": "https:\/\/1.domain.com/.well-known/pki-validation/dcv.txt"
}
},
"*.2.domain.com": {
"type": "dns",
"subdomain": "*.2",
"topleveldomain": "domain.com",
"status": "pending",
"dns": {
"type": "TXT",
"hostname": "_dcv",
"fullname": "_dcv.domain.com",
"value": "_02xx0420371417qqwxyww0tgvhq3h0ogam7zzjsixr42fa4w77r18b2de"
}
}
},
"nonce": "5d75400c79d89",
"timestamp": "2019-09-09T01:53:16Z",
"sign": "vmun1yvlYG50syrD2eswj/Ol0DxmnALICNTKJwFamCk="
}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 26
{
"success": true,
"message": "OK"
}
After your server processes the notification successfully, it should return a 200 status code with this structure.
HTTP/1.1 500 Server Internal Error
{
"success": false,
"message": "Internal server error"
}
HTTP/1.1 404 Not Found
{
"success": false,
"message": "Order not found"
}
If your server fails to process the notification, it should return a 40x or 50x status code with this structure. When we attempt a callback and your server returns an error, we will retry the notification every 5 minutes for 12 hours until it succeeds.