Unable to get a new certificate

My domain is: automation-lab.net

I ran this command: sudo certbot certonly --webroot --webroot-path=/var/www/automation-lab.net -d automation-lab.net -d www.automation-lab.net

It produced this output: (Last part of output) 2018-06-29 13:43:31,853:DEBUG:certbot.reporter:Reporting to user: The following errors were reported by the server:

Domain: automation-lab.net
Type: connection
Detail: Fetching http://automation-lab.net/.well-known/acme-challenge/n3rP_TKY-8LEQvfGlE9mu-q79F-azWy6P2NV8BsBp78: Timeout during connect (likely firewall problem)

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 p$
2018-06-29 13:43:31,855:INFO:certbot.auth_handler:Cleaning up challenges
2018-06-29 13:43:31,857:DEBUG:certbot.plugins.webroot:Removing /var/www/automation-lab.net/.well-known/acme-challenge/n3rP_TKY-8LEQvfGlE9mu-q79F-azWy6P2NV8BsBp78
2018-06-29 13:43:31,861:DEBUG:certbot.plugins.webroot:All challenges cleaned up, removing /var/www/automation-lab.net/.well-known/acme-challenge
2018-06-29 13:43:31,870:DEBUG:certbot.main:Exiting abnormally:
Traceback (most recent call last):
File “/usr/bin/certbot”, line 11, in
load_entry_point(‘certbot==0.10.2’, ‘console_scripts’, ‘certbot’)()
File “/usr/lib/python2.7/dist-packages/certbot/main.py”, line 849, in main
return config.func(config, plugins)
File “/usr/lib/python2.7/dist-packages/certbot/main.py”, line 626, in obtain_cert
action, _ = _auth_from_available(le_client, config, domains, certname, lineage)
File “/usr/lib/python2.7/dist-packages/certbot/main.py”, line 107, in _auth_from_available
lineage = le_client.obtain_and_enroll_certificate(domains, certname)
File “/usr/lib/python2.7/dist-packages/certbot/client.py”, line 291, in obtain_and_enroll_certificate
certr, chain, key, _ = self.obtain_certificate(domains)
File “/usr/lib/python2.7/dist-packages/certbot/client.py”, line 262, in obtain_certificate
self.config.allow_subset_of_names)
File “/usr/lib/python2.7/dist-packages/certbot/auth_handler.py”, line 77, in get_authorizations
self._respond(resp, best_effort)
File “/usr/lib/python2.7/dist-packages/certbot/auth_handler.py”, line 134, in _respond
self._poll_challenges(chall_update, best_effort)
File “/usr/lib/python2.7/dist-packages/certbot/auth_handler.py”, line 198, in _poll_challenges
raise errors.FailedChallenges(all_failed_achalls)
FailedChallenges: Failed authorization procedure. automation-lab.net (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://automation-lab.net/.well-known/acme-challenge/n3rP_TKY-8LEQvfGlE9mu-q79$

My web server is (include version): Nginx/1.10.3

The operating system my web server runs on is (include version): Raspbian GNU/Linux 9 (stretch)

My hosting provider, if applicable, is: I am hosting this on my raspberry pi

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):

I have enabled port forwarding on my router and i can verify that i can view the site on a browser.

I can’t access http://automation-lab.net/. (Or https://automation-lab.net/.) I can ping it, though.

Are you sure the DNS records are correct; your computer, router, modem or ISP aren’t firewalling it; it can be accessed from other networks; it can be accessed from other ISPs; and it can be accessed from other countries?

1 Like

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