Skip to main content

Rotate ACME EAB Credentials

Rotate the ACME EAB credentials of a certificate.

After rotation, the old credentials are invalidated immediately. ACME clients registered with the old credentials must re-register using the new ones. The response returns a new eab_kid and eab_mac_key; save them immediately.

Old credentials are invalidated immediately

After a successful rotation, the old eab_kid and eab_hmac_key are invalidated immediately, and all ACME clients registered with the old credentials will no longer be able to issue or renew certificates. Make sure to update all client configurations promptly after rotation.

Endpoint

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

Host:
...

Full URL

/api/v1/certificate/acme/eab-rotate

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-new-xxxxx", // New EAB Key Identifier
"eab_mac_key": "new-hmac-key-xxxxx", // New HMAC Key (returned only this time)
"existing": false, // Always false after rotation
"white_ips": [] // Current IP allowlist (reset to empty after rotation)
}
}
The HMAC Key is returned only this time

eab_mac_key is returned only once, at rotation, and cannot be retrieved again afterwards. Save it to a secure location immediately; if lost, you can only rotate again to obtain new credentials.

Error Codes​

HTTP Status CodemessageMeaning and Suggested Handling
400This certificate does not support ACME EABThe certificate vendor cannot rotate EAB credentials
400ACME EAB has not been created for this certificate yet, so it cannot be rotatedEAB credentials have not been created yet; call Create EAB Credentials 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 a successful rotation, re-register the account in your ACME client using the new eab_kid and eab_mac_key:

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