Skip to main content

Create ACME EAB Credentials

Create ACME External Account Binding (EAB) credentials for a certificate.

EAB credentials are used to register an account in ACME clients (such as acme.sh, Certbot, Caddy, etc.), enabling automated certificate issuance, renewal, and management. The first creation returns eab_kid and directory (the ACME directory URL); the HMAC Key is returned only once, on first creation, and is not included in subsequent calls. To obtain a new HMAC Key, use the rotate API.

Endpoint

POST /api/v1/certificate/acme/eab-create

Host:
...

Full URL

/api/v1/certificate/acme/eab-create

Request​

Content-Type: application/json
Content-Length: 24

{
"service_id": "J94V73" // Certificate ID, required; the `service_id` returned when creating the order
}

Response​

HTTP/1.1 200 OK

Content-Type: application/json

{
"success": true,
"data": {
"order_id": "TA-xxxxx", // Order ID on the CA side
"directory": "https://acme.ca.example/directory", // ACME directory URL
"eab_kid": "eab-key-xxxxx", // EAB Key Identifier
"eab_mac_key": "hmac-key-xxxxx", // EAB HMAC Key (returned only on first creation; save it immediately)
"existing": false, // false = newly created this time, true = already exists, returned directly
"white_ips": [] // Current IP allowlist (an empty array means no restriction)
}
}
The HMAC Key is returned only once, at creation

eab_mac_key is returned only on first creation (when existing is false); save it to a secure location immediately. Subsequent calls to this API (when existing is true) no longer return eab_mac_key. To obtain a new HMAC Key, call the Rotate EAB Credentials API.

Error Codes​

HTTP Status CodemessageMeaning and Suggested Handling
400This certificate does not support ACME EABThe certificate vendor cannot create EAB credentials
400The certificate has not been submitted to the CA yetThe certificate has not been submitted to the CA (ca_order_number is empty); complete the certificate application process first
404The certificate is not foundThe certificate does not exist, or does not belong to the workspace associated with the current API key
422The service ID is requiredThe certificate ID service_id was not provided

Next Steps​

After creating the EAB credentials, use the returned directory, eab_kid, and eab_mac_key to complete registration in your ACME client:

# acme.sh example
acme.sh --register-account -m my@example.com \
--server https://acme.ca.example/directory \
--eab-kid "eab-key-xxxxx" \
--eab-hmac-key "your-hmac-key"

To restrict usage of these EAB credentials to specific IPs only, call the Update IP Allowlist API.