SOLVED Let's Encrypt AutoSSL Error: JWS has invalid anti-replay nonce

Mar 4, 2017
5
1
3
Earth
cPanel Access Level
Root Administrator
I installed AutoSSL recently and am having trouble getting it to obtain certificates from Let's Encrypt. Running WHM 62.0 (build 16).

Each day the logs for AutoSSL say it "will attempt to obtain a new certificate and install it" for each of host names in the account, and then "The system will attempt to renew SSL certificates for the following websites" with a list of all the sites below. There is then a delay of usually about an hour and a half. Then a message like the following comes back:

Code:
8:31:54 PM WARN (XID k7x2hn) The ACME function “https://acme-v01.api.letsencrypt.org/acme/new-cert” indicated an error: “JWS has invalid anti-replay nonce cVvpJQgH-XBky1Mp1IECcsEvZBvfIrtPpwDbAmDIYmY (The client sent an unacceptable anti-replay nonce)” (400, “Bad Request”, urn:acme:error:badNonce).
Followed by "The system has completed the AutoSSL check".

Can anyone please point me in the right direction to get this resolved?

Thanks.
 
Last edited by a moderator:
Mar 4, 2017
5
1
3
Earth
cPanel Access Level
Root Administrator
Thanks for this. I am creating a ticket through WHM. I just need confirmation from the business owner regarding granting access to the server, and will complete the process once I have that (or don't).
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,481
35
208
cPanel Access Level
DataCenter Provider
We have a case open on this problem:

case CPANEL-8495: Broken IPv6 routing can cause AutoSSL w/ Let's Encrypt to wait for IPv4 failover to kick in before loading (may present as JWS has invalid anti-replay nonce)

The problem presents itself when a server has an IPv6 address but cannot reach Let's Encrypt over IPv6.

The solution:

  • Ideally: fix whatever routing issue preventing the server from reaching Let's Encrypt over IPv6.
  • If thats not possible, you can work around the routing problem by modifying gai.conf to lower the priority of IPv6.
  • Alternatively, switch to the cPanel AutoSSL provider which does not suffer from this problem.