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.
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
- response
- 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-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)
}
}
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.
HTTP/1.1 400 Bad Request
Content-Type: application/json
{
"success": false,
"message": "ACME EAB has not been created for this certificate yet, so it cannot be rotated"
}
Error Codes
| HTTP Status Code | message | Meaning and Suggested Handling |
|---|---|---|
| 400 | This certificate does not support ACME EAB | The certificate vendor cannot rotate EAB credentials |
| 400 | ACME EAB has not been created for this certificate yet, so it cannot be rotated | EAB credentials have not been created yet; call Create EAB Credentials 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 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"