Hi,
I’m having a lot of trouble the last couple of weeks to generate new certificates. I use the certonly --standalone mode with a http challenge and I’m getting random timeout errors. I want generate a certificate covering 4 domain names both www and non-www. Sometimes just 1 domain fails and sometimes 3 or 4 fail. This is completely random.
My domains are:
smartbusiness.bike
smartbike.business
smartbusinessbike.com
smartbusinessbike.nl
I ran this command:
certbot certonly --standalone --preferred-challenges http --pre-hook="service nginx stop" --post-hook="service nginx start" -d smartbike.business -d www.smartbike.business -d smartbusiness.bike -d www.smartbusiness.bike -d smartbusinessbike.com -d www.smartbusinessbike.com -d smartbusinessbike.nl -d www.smartbusinessbike.nl
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Running pre-hook command: service nginx stop
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for smartbike.business
http-01 challenge for www.smartbike.business
http-01 challenge for smartbusiness.bike
http-01 challenge for www.smartbusiness.bike
http-01 challenge for smartbusinessbike.com
http-01 challenge for www.smartbusinessbike.com
http-01 challenge for smartbusinessbike.nl
http-01 challenge for www.smartbusinessbike.nl
Waiting for verification...
Cleaning up challenges
Running post-hook command: service nginx start
Failed authorization procedure. www.smartbusiness.bike (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching https://smartbusiness.bike/.well-known/acme-challenge/niORJoJuaMrayvd6uNve5Z8-xxm3Wvc3wBV7J44He1I: Connection refused, www.smartbike.business (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching https://smartbusiness.bike/.well-known/acme-challenge/XoZxXbFTXeKJsA7lE7z8mxsPo1S06Jr3yMdblOgPWqw: Connection refused
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: www.smartbusiness.bike
Type: connection
Detail: Fetching
https://smartbusiness.bike/.well-known/acme-challenge/niORJoJuaMrayvd6uNve5Z8-xxm3Wvc3wBV7J44He1I:
Connection refused
Domain: www.smartbike.business
Type: connection
Detail: Fetching
https://smartbusiness.bike/.well-known/acme-challenge/XoZxXbFTXeKJsA7lE7z8mxsPo1S06Jr3yMdblOgPWqw:
Connection refused
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you're using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
My web server is (include version):
Nginx (but I’m using standalone mode).
The operating system my web server runs on is (include version):
Debian 9
I can login to a root shell on my machine (yes or no, or I don’t know): yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no
Any ideas, I tried to find out how I can increase timeout values but I wasn’t able to find this.
Thanks!
edit:
The firewall is open on port 80 and 443 and I have websites running on Nginx with Letsencrypt certificates.