I am having problems obtaining a certificate on a fresh raspbian installation using certbot-auto. I keep running into a timeout error (see full output below). Upon checking the debug logs, the only thing that looks out of the ordinary is the following line, which appears as certbot attempts to spin up its standalone server:
DEBUG:acme.standalone:Failed to bind to :80 using IPv4
I’m fairly confident that both DuckDNS and port forwarding have been set up correctly; I spun up a quick “hello world” server in python on port 80 and was able to access it via my duckdns domain (in between attempts, of course).
Port 80 is not otherwise in use, and certbot does not complain of it being in use.
Any ideas?
Please fill out the fields below so we can help you better.
My domain is: dwelch.duckdns.org
I ran this command: sudo ./certbot-auto certonly --standalone --preferred-challenges http -d dwelch.duckdns.org
It produced this output:
saving debug log to /var/log/letsencrypt/letsencrypt.log
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for dwelch.duckdns.org
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. dwelch.duckdns.org (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://dwelch.duckdns.org/.well-known/acme-challenge/mdldbzgh0xVaxx6lQDkyDGW3RqWMaA-oIbUmT4TVUCs: Timeout
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: dwelch.duckdns.org
Type: connection
Detail: Fetching
http://dwelch.duckdns.org/.well-known/acme-challenge/mdldbzgh0xVaxx6lQDkyDGW3RqWMaA-oIbUmT4TVUCs:
Timeout
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA 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.
Debug Log: DEBUG:acme.standalone:Failed to bind to :80 using IPv4
My web server is (include version): standalone
The operating system my web server runs on is (include version): RASPBIAN JESSIE LITE version July 2017, kernel version 4.9
My hosting provider, if applicable, is:
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