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