Certbot Verification Issue (Challenge failed for domain)

Hi,

I'm installing certificate using:

sudo certbot --nginx -d certbot.ddnsking.com

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for certbot.ddnsking.com
Waiting for verification...
Challenge failed for domain certbot.ddnsking.com
http-01 challenge for certbot.ddnsking.com
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:

I guess the problem is with /.well-known/acme-challenge/14p-Zi4UV83zsePM5dPRGlikyo7ZyXjeViefLDatdlg availability (cause it's not available)...

The log file is uploaded to privnote:
https://privnote.com/G4Yy9O4j#0vmDaM6eH

Please advise if any possible solution is available. Thank you.

1 Like

Hi @CEBEP

looks like your vHost configuration is buggy. Checking your domain a wrong certificate is used - https://check-your-website.server-daten.de/?q=certbot.ddnsking.com

CN=desarrollandoamerica.org
	26.09.2019
	25.12.2019
expires in 14 days	
desarrollandoamerica.org, www.desarrollandoamerica.org - 2 entries

What says

nginx -T

Every combination of port and domain name must be unique. Or a vHost definition is wrong, so the vHost isn't used.

https://privnote.com/DJ9yDYNT#8EKd0IJwb

There you see your problem.

Looks buggy - no listen, not the list of domains you use in your command -> Certbot can’t find the correct vHost -> one of the other vHosts is used.

PS: Looks like you have created that vHost manual.

3 Likes

Dear Juergen, thank you for your help and time. I have no idea how I managed to remove virtual host from nginx config. All works smoothly. Thank you once again.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.