SOLVED Challenge validation has failed letsencrypt.sh

Status
Not open for further replies.

dgxa

Member
May 19, 2021
41
2
8
34
Lima, Peru
Hello I am trying to install ssl certificate for my fusionpbx and the scritp letsencrypt.sh failed. I am using Debian 11 in GCP platfrom. Someone can help yo solved this or give a recomendation to goal a solution.

ERROR: Challenge is invalid! (returned: invalid) (result: ["type"] "dns-01"
["status"] "invalid"
["error","type"] "urn:ietf:params:acme:error:dns"
["error","detail"] "DNS problem: NXDOMAIN looking up TXT for _acme-challenge.domain.com - 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 TXT for _acme-challenge.domain.com - check that a DNS record exists for this domain","status":400}
["url"] "https://acme-v02.api.letsencrypt.org/acme/chall-v3/118981705096/2Pl0Yw"
["token"] "tFFr7NKMj5MGJZmDf-MkVvkFfc0ydcVtU8flRqCGc8s"
["validated"] "2022-06-12T21:39:43Z")
Challenge is invalid! (returned: invalid) (result: ["type"] "dns-01"
["status"] "invalid"
["error","type"] "urn:ietf:params:acme:error:dns"
["error","detail"] "DNS problem: NXDOMAIN looking up TXT for _acme-challenge.domain.com - 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 TXT for _acme-challenge.domain.com - check that a DNS record exists for this domain","status":400}
["url"] "https://acme-v02.api.letsencrypt.org/acme/chall-v3/118981705096/2Pl0Yw"
["token"] "tFFr7NKMj5MGJZmDf-MkVvkFfc0ydcVtU8flRqCGc8s"
["validated"] "2022-06-12T21:39:43Z")
nginx: [emerg] cannot load certificate "/etc/dehydrated/certs/domain.com/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/dehydrated/certs/domain.com/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed
cat: /etc/dehydrated/certs/domain.com/fullchain.pem: No such file or directory
cat: /etc/dehydrated/certs/domain.com/privkey.pem: No such file or directory
cp: cannot stat '/etc/dehydrated/certs/domain.com/cert.pem': No such file or directory
cp: cannot stat '/etc/dehydrated/certs/domain.com/chain.pem': No such file or directory
cp: cannot stat '/etc/dehydrated/certs/domain.com/fullchain.pem': No such file or directory
cp: cannot stat '/etc/dehydrated/certs/domain.com/privkey.pem': No such file or directory.domain.com ctvd4.domain.com ctvd5.domain.com
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
Well, the above looks like you are using a dns challenge rather than an http challenge

You need to create the DNS txt records
 

dgxa

Member
May 19, 2021
41
2
8
34
Lima, Peru
Well, the above looks like you are using a dns challenge rather than an http challenge

You need to create the DNS txt records
I am using namecheap. Namecheap not has API to make the process automatic. You nee to load DNS txt records manually Thank you DigitalDaz
 
Status
Not open for further replies.