menu

Questions & Answers

Challenge is invalid! Let's Encrypt Laravel Forge

I'm trying to install an SSL certificate on my domain, workbook.ro, but I get the following error:

ERROR: Challenge is invalid! (returned: invalid) (result: ["type"]  "http-01"
["status"]  "invalid"
["error","type"]    "urn:ietf:params:acme:error:dns"
["error","detail"]  "DNS problem: NXDOMAIN looking up A for www.workbook.ro - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for www.workbook.ro - check that a DNS record exists for this domain"
["error","status"]  400
["error"]   {"type":"urn:ietf:params:acme:error:dns","detail":"DNS problem: NXDOMAIN looking up A for www.workbook.ro - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for www.workbook.ro - check that a DNS record exists for this domain","status":400}
["url"] "https://acme-v02.api.letsencrypt.org/acme/chall-v3/194106005627/s88yuw"
["token"]   "TpwjEXfEhyIStmwrVfy1ABUCVSJg9QbNpNeabaBwKdI"
["validated"]   "2023-01-10T16:42:06Z")

I used https://dnschecker.org/ to check if DNS Records resolve and they are fine for A and AAAA records (they return the VPS public IP 164.90.218.226) so I'm not sure what seems to be the problem.

I am using Digital Ocean for the VPS. The domain is registered to another registrar. The nameservers for the domain are: ns1.digitalocean.com / ns2.digitalocean.com / ns3.digitalocean.com

I have tried adding new DNS records on Digital Ocean domain setup page, thinking that maybe that is the problem.

DNS Records on Digital Ocean: digital ocean snippet

Comments:
2023-01-11 09:29:36
How long ago did you change your DNS records? Are you using any proxy services like CloudFlare?
2023-01-11 09:29:36
I changed them about 2 days ago. Also I am not using any proxy. The app is deployed with Forge, so standard installation with nginx
2023-01-11 09:29:36
Laravel Forge allows you to spin up new servers pretty easily... maybe try making a new server and using Forge to make a new SSL cert for you?
Answers(0) :