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
- First creation
- Calling again when credentials already exist
- errors
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)
}
}
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.
HTTP/1.1 200 OK
Content-Type: application/json
{
"success": true,
"data": {
"order_id": "TA-xxxxx",
"directory": "https://acme.ca.example/directory",
"eab_kid": "eab-key-xxxxx",
"existing": true, // true = credentials already exist, returned directly
"white_ips": ["192.168.1.0/24"]
}
}
When existing is true, the response does not include eab_mac_key.
HTTP/1.1 400 Bad Request
Content-Type: application/json
{
"success": false,
"message": "This certificate does not support ACME EAB"
}
Error Codes
| HTTP Status Code | message | Meaning and Suggested Handling |
|---|---|---|
| 400 | This certificate does not support ACME EAB | The certificate vendor cannot create EAB credentials |
| 400 | The certificate has not been submitted to the CA yet | The certificate has not been submitted to the CA (ca_order_number is empty); complete the certificate application process first |
| 404 | The certificate is not found | The certificate does not exist, or does not belong to the workspace associated with the current API key |
| 422 | The service ID is required | The 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.