Certificate expiration is one of those problems that is easy to ignore until it isn't. A certificate that expires unexpectedly can bring down production services in seconds, and the manual rotation cycle (request, install, verify, repeat) is a source of human error. WebSphere Liberty's acmeCA-2.0 feature is designed to ease the burden. This post explains what the feature does, how it works, and covers an important current limitation.
What acmeCA-2.0 does
acmeCA-2.0 implements the ACME protocol (RFC 8555), the same protocol used by Let's Encrypt, to automate the full certificate lifecycle for a Liberty server. When the feature is enabled:
- On first startup, Liberty contacts the ACME CA, completes an HTTP-01 domain ownership challenge, and receives a CA-signed certificate. No
keytool commands, no certificate signing request files, no manual installation.
- Every day, Liberty checks whether the certificate is within the renewal window (default: 7 days before expiry) and renews automatically if needed.
The minimum configuration in server.xml looks like this:
<featureManager>
<feature>acmeCA-2.0</feature>
</featureManager>
<acmeCA directoryURI="https://acme.example.com/directory"
domain="myserver.example.com"
accountContact="mailto:admin@example.com" />
<!-- acmeCA-2.0 requires port 80 for the HTTP-01 challenge callback from the CA -->
<httpEndpoint id="defaultHttpEndpoint"
host="*"
httpPort="80"
httpsPort="443" />
acmeCA-2.0 is available in both WebSphere Liberty ND and Open Liberty. For the full attribute reference (renewBeforeExpiration, accountKeyFile, domainKeyFile, revocation checking, transport configuration), see the acmeCA configuration reference on Open Liberty docs.
How the HTTP-01 challenge works
acmeCA-2.0 supports the HTTP-01 challenge type only. When Liberty requests a certificate:
- The ACME CA issues a token and instructs Liberty to serve it at
http://<domain>/.well-known/acme-challenge/<token>.
- The CA fetches that URL to verify that Liberty controls the domain.
- On success, the CA issues the signed certificate.
This means two things must be true for acmeCA-2.0 to work:
- Port 80 on the Liberty server must be reachable from the CA. Environments where inbound port 80 is blocked by a firewall or load balancer cannot use HTTP-01.
- The domain name must resolve in DNS to the Liberty server's IP address. This makes
acmeCA-2.0 straightforward for servers with a real DNS-resolvable hostname and unsuitable for servers that are only reachable by internal name or IP.
DNS-01 challenge is not currently supported. If your network topology blocks inbound port 80, the manual certificate replacement procedure (technote 1096222) remains the path forward for now.
Current limitation: External Account Binding (EAB) is not supported
Many enterprise and private ACME CAs require a mechanism called External Account Binding (EAB), defined in RFC 8555 §7.3.4. EAB allows a CA to link a new ACME account to a pre-existing account in their billing or identity system. It is essentially a credential that proves you are an authorized customer before the CA will issue any certificates.
A CA that requires EAB sets "externalAccountRequired": true in its ACME directory metadata. When an ACME client omits the externalAccountBinding field from its newAccount request, the CA responds with an unauthorized error.
acmeCA-2.0 does not currently send the externalAccountBinding field. If you point Liberty at a CA that requires EAB, the account creation fails and you will see this in messages.log:
CWPKI2018E: The user account could not be created on the ACME certificate authority
at the <URI>. The error is '<CA error detail>'.
There is no CWPKI message code specific to an EAB rejection. You must read the CA-provided error detail embedded in CWPKI2018E and look for wording such as externalAccountRequired or EAB required.
The underlying ACME client library bundled with Liberty (acme4j 2.7) already implements the EAB mechanism. The gap is that Liberty's configuration schema does not expose eabKid or eabHmacKey attributes, and the Liberty ACME client code never calls the library's EAB method. A feature request to add EAB support is open: LIBERTY-I-250 on IBM Ideas. If your environment requires EAB, please vote for that idea.
Testing with a local ACME CA
If you want to validate the acmeCA-2.0 code path in a lab environment before it is available against your production CA, or if your production CA requires EAB and you are waiting for Liberty to support it, you can use Pebble, the ACME test server from the Let's Encrypt team.
Pebble implements the full RFC 8555 ACME protocol, including HTTP-01 challenges, and does not require EAB. It is the closest available stand-in for testing the exact acmeCA-2.0 configuration you intend to use in production (minus the EAB fields).
When using Pebble or any other private ACME CA, its root certificate is not in the JDK default truststore. You need to import the CA root into a dedicated truststore and reference it through <acmeTransportConfig> (this truststore is used only for Liberty's HTTPS connection to the ACME directory API, not for serving application traffic):
keytool -importcert \
-file <path-to-pebble-root.pem> \
-alias acme-ca-root \
-keystore <server>/resources/security/acmeTrust.p12 \
-storepass Liberty \
-storetype PKCS12 \
-noprompt
<acmeCA directoryURI="https://localhost:14000/dir"
domain="myserver.example.com"
accountContact="mailto:admin@example.com">
<acmeTransportConfig trustStore="acmeTrust.p12"
trustStorePassword="Liberty" />
</acmeCA>
When Liberty's acmeCA-2.0 gains EAB support, switching from Pebble to the real CA is a configuration-only change: replace directoryURI, add <externalAccountBinding keyId="..." hmacKey="..." />, and remove the <acmeTransportConfig> stanza. Everything else stays the same.
acmeCA-2.0 and Liberty collectives
One important scoping note for collective users: enabling acmeCA-2.0 on the collective controller does not manage certificates for the entire collective.
acmeCA-2.0 manages only the HTTPS certificate (key.p12) for the single server where it is configured. It does not touch serverIdentity.p12 or collectiveTrust.p12. If acmeCA-2.0 renews the HTTPS certificate on the controller, the old leaf certificate entry in every member's collectiveTrust.p12 becomes stale. Any member that restarts after the renewal will fail with IBMCertPathBuilderException on the collective channel.
To use acmeCA-2.0 in a collective today, you would need to configure it on each server individually and manually rebuild collectiveTrust.p12 on all peers after each renewal. Automating collective trust store updates after ACME renewal is not currently supported.
Summary
| Scenario |
acmeCA-2.0 status |
| Public CA (Let's Encrypt, ZeroSSL) without EAB |
✅ Supported |
| Private ACME CA without EAB (e.g. Pebble) |
✅ Supported; import CA root into acmeTrust.p12 |
| Any CA that requires EAB |
❌ Not yet supported; vote for LIBERTY-I-250 |
| Inbound port 80 blocked or air-gapped network |
❌ Not supported (HTTP-01 only) |
Further reading