The server could not connect to validation target during http-01 challenge. #1359
-
I am trying to use acme.sh with a step-ca server but am encountering the following error during the http-01 challenge "The server could not connect to validation target" followed by "Unacceptable anti-replay nonce". Acme.sh command:
Server output below:
ACME.sh output
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @wlmarion, Your ACME client is configured to get a certificate for the domain You'll need to either use a different domain (or an IP) for testing that does resolve on your local network (or at least to infrastructure you control), such as We have some documentation on using Smallstep with |
Beta Was this translation helpful? Give feedback.
-
Hello @hslatman, I have tried setting dns up a few different ways but seem to end up with the same result. I have tried setting test.com to point back to the step-ca server 10.6.18.10. I have also tried setting it to the acme.sh client 10.6.18.11. I also have a load balancer that can respond to http-01 acme challenges at 10.6.18.50 that I've set test.com dns to. I've pasted my step-ca config below. To my understanding this should mean the step-ca server resolves test.com based on its own dns settings. Below I have the step-ca server resolving test.com to the acme.sh client. The result is the same as above. Is there something off in my step-ca config? Or could there be another reason this challenge is failing? Step-ca config
Dig test.com from step-ca server
|
Beta Was this translation helpful? Give feedback.
-
Hello @hslatman, Thanks for your help. It kept me focused on the problem. I noticed my curl of test.com was resolving to the ACME server rather than client. I hadn't considered that I never modified the default AAAA record for test.com and left it as ::1. Curl was using this to resolve rather than the A record I set. I deleted the AAAA and now my load balancer can complete successfully. My linux client trying to use acme.sh is still having issues, but I have some thoughts as to why and can play around with that. I now at least know the step-ca server is working properly. Thanks again! |
Beta Was this translation helpful? Give feedback.
Hi @wlmarion,
Your ACME client is configured to get a certificate for the domain
test.com
. To complete the challenge and authorize the request, the ACME server will reach out totest.com
to look if the correct challenge is presented by the web server. For this, the ACME server needs to be able to resolvetest.com
and that needs to point at infrastructure you control. The error message you're seeing indicates that the ACME server can't connect totest.com
.You'll need to either use a different domain (or an IP) for testing that does resolve on your local network (or at least to infrastructure you control), such as
-d <ip-of-acme.sh-host>
or change the configuration of the DNS server that t…