nginx-certbot icon indicating copy to clipboard operation
nginx-certbot copied to clipboard

Not creating a certificate for a subdomain

Open Rektalizer opened this issue 3 years ago • 3 comments

init-letsencrypt.sh works perfectly for domains like website.com or www.website.com, however when specific subdomains required like forum.website.com it fails with this error

Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
  Domain: forum.website.com
  Type:   connection
  Detail: 104.199.106.75: Fetching http://forum.website.com/.well-known/acme-challenge/Y95bRZ3zcitpwUbAA4FAAmB18od-fepB8_vQfBhk_zA: Connection refused

Seems like this is a common issue as there are few of them here. Does any bypass or fix for this exist?

Rektalizer avatar Oct 07 '22 17:10 Rektalizer

I also have this issue. Is there a workaround?

DavidKaub avatar Nov 09 '22 14:11 DavidKaub

@DavidKaub @Rektalizer I just generated a certificate for a subdomain successfully. Have you replaced all the example.org to the subdomain name?

soreana avatar Nov 30 '22 17:11 soreana

If you run into this problem-- Check the certbot container logs.

docker exec -it certbotContainerName sh cat /var/log/letsencrypt/letsencrypt.log

Scroll up through the logs a bit... You may see this, as I did-- because I forgot to add a DNS record for the subdomain, via your hosting provider:

Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
  Domain: api.livestauction.com
  Type:   dns
  Detail: DNS problem: NXDOMAIN looking up A for api.livestauction.com - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for api.livestauction.com - check that a DNS record exists for this domain

pmeaney avatar Mar 17 '24 22:03 pmeaney