Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:
I ran this command: sudo certbot certonly --agree-tos --rsa-key-size 4096 --renew-by-default -m postmaster@mydomain.com --standalone -d mail.mydomain.com
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Renewing an existing certificate
Performing the following challenges:
tls-sni-01 challenge for mail.mydomain.com
Waiting for verificationâŚ
Cleaning up challenges
Failed authorization procedure. mail.mydomain.com (tls-sni-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Timeout during connect (likely firewall problem)
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: mail.mydomain.com
Type: connection
Detail: Timeout during connect (likely firewall problem)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.
My web server is (include version): N/A. The letsencrypt SSL cert is on the email server (not Web server)
The operating system my web server runs on is (include version): Ubuntu 18.04
My hosting provider, if applicable, is: N/A
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): N/A
Additional Info:
From /var/log/letsencrypt/letsencrypt.log -
2018-09-25 04:13:16,569:DEBUG:acme.challenges:tls-alpn-01 was not recognized, full message: {âtypeâ: âtls-alpn-01â, âstatusâ: âpendingâ, âurlâ: 'https://acme-v02.api.letsencrypt.org/acme/c$
2018-09-25 04:13:19,573:DEBUG:acme.client:Sending GET request to https://acme-v02.api.letsencrypt.org/acme/authz/SDmf5hX6wcPdcH52c-F3I5F1eydhonsRhJPfvYrd4Jk.
2018-09-25 04:13:19,690:DEBUG:urllib3.connectionpool:https://acme-v02.api.letsencrypt.org:443 âGET /acme/authz/SDmf5hX6wcPdcH52c-F3I5F1eydhonsRhJPfvYrd4Jk HTTP/1.1â 200 1570
2018-09-25 04:13:19,692:DEBUG:acme.client:Received response:
HTTP 200
Server: nginx
Content-Type: application/json
Content-Length: 1570
X-Frame-Options: DENY
Strict-Transport-Security: max-age=604800
Expires: Tue, 25 Sep 2018 11:13:19 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 25 Sep 2018 11:13:19 GMT
Connection: keep-alive
{
âidentifierâ: {
âtypeâ: âdnsâ,
âvalueâ: âmail.mydomain.comâ
},
âstatusâ: âinvalidâ,
âexpiresâ: â2018-10-02T11:13:06Zâ,
âchallengesâ: [
{
âtypeâ: âdns-01â,
âstatusâ: âinvalidâ,
âurlâ: âhttps://acme-v02.api.letsencrypt.org/acme/challenge/SDmf5hX6wcPdcH52c-F3I5F1eydhonsRhJPfvYrd4Jk/7658546445â,
âtokenâ: âQoCGjQGKmAXHiuIyh-TrzLxWidCK9gGXDxIdLKVkP6wâ
},
{
âtypeâ: âtls-sni-01â,
âstatusâ: âinvalidâ,
âerrorâ: {
âtypeâ: âurn:ietf:params:acme:error:connectionâ,
âdetailâ: âTimeout during connect (likely firewall problem)â,
âstatusâ: 400
},
âurlâ: âhttps://acme-v02.api.letsencrypt.org/acme/challenge/SDmf5hX6wcPdcH52c-F3I5F1eydhonsRhJPfvYrd4Jk/7658546446â,
âtokenâ: âmzPI34JbC4p2ii4iTWVGsO1TTTWQze7NVwNooRDAt18â,
âvalidationRecordâ: [
{
âhostnameâ: âmail.mydomain.comâ,
âportâ: â443â,
âaddressesResolvedâ: [
âcorrect IP address hereâ
],
âaddressUsedâ: âcorrect IP address hereâ
}
]
},
{
âtypeâ: âhttp-01â,
âstatusâ: âinvalidâ,
âurlâ: âhttps://acme-v02.api.letsencrypt.org/acme/challenge/SDmf5hX6wcPdcH52c-F3I5F1eydhonsRhJPfvYrd4Jk/7658546447â,
âtokenâ: âUIkQuaDSPJH0RRJEKASbsCTECJ8ux44aSkIZcpuG4IQâ
},
{
âtypeâ: âtls-alpn-01â,
âstatusâ: âinvalidâ,
âurlâ: âhttps://acme-v02.api.letsencrypt.org/acme/challenge/SDmf5hX6wcPdcH52c-F3I5F1eydhonsRhJPfvYrd4Jk/7658546450â,
âtokenâ: âoMczcv3rHATQR2GPXcOdt64ydFyk9mdzrpApcJr9RYsâ
}
]
}
2018-09-25 04:13:19,693:DEBUG:acme.challenges:tls-alpn-01 was not recognized, full message: {âtypeâ: âtls-alpn-01â, âstatusâ: âinvalidâ, âurlâ: 'https://acme-v02.api.letsencrypt.org/acme/c$
2018-09-25 04:13:19,695:DEBUG:certbot.reporter:Reporting to user: The following errors were reported by the server:
Domain: mail.mydomain.com
Type: connection
Detail: Timeout during connect (likely firewall problem)
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.
2018-09-25 04:13:19,696:DEBUG:certbot.error_handler:Encountered exception:
Traceback (most recent call last):
File â/usr/lib/python3/dist-packages/certbot/auth_handler.pyâ, line 82, in handle_authorizations
self._respond(aauthzrs, resp, best_effort)
File â/usr/lib/python3/dist-packages/certbot/auth_handler.pyâ, line 155, in _respond
self._poll_challenges(aauthzrs, chall_update, best_effort)
File â/usr/lib/python3/dist-packages/certbot/auth_handler.pyâ, line 226, in _poll_challenges
raise errors.FailedChallenges(all_failed_achalls)
certbot.errors.FailedChallenges: Failed authorization procedure. mail.mydomain.com (tls-sni-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Timeout during connect (likely firewall problem)
2018-09-25 04:13:19,697:DEBUG:certbot.error_handler:Calling registered functions
2018-09-25 04:13:19,697:INFO:certbot.auth_handler:Cleaning up challenges
2018-09-25 04:13:19,698:DEBUG:certbot.plugins.standalone:Stopping server at 0.0.0.0:443âŚ
2018-09-25 04:13:19,978:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File â/usr/bin/certbotâ, line 11, in
load_entry_point(âcertbot==0.26.1â, âconsole_scriptsâ, âcertbotâ)()
File â/usr/lib/python3/dist-packages/certbot/main.pyâ, line 1364, in main
return config.func(config, plugins)
File â/usr/lib/python3/dist-packages/certbot/main.pyâ, line 1254, in certonly
lineage = _get_and_save_cert(le_client, config, domains, certname, lineage)
File â/usr/lib/python3/dist-packages/certbot/main.pyâ, line 115, in _get_and_save_cert
renewal.renew_cert(config, domains, le_client, lineage)
File â/usr/lib/python3/dist-packages/certbot/renewal.pyâ, line 305, in renew_cert
new_cert, new_chain, new_key, _ = le_client.obtain_certificate(domains, new_key)
File â/usr/lib/python3/dist-packages/certbot/client.pyâ, line 334, in obtain_certificate
orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names)
File â/usr/lib/python3/dist-packages/certbot/client.pyâ, line 370, in _get_order_and_authorizations
authzr = self.auth_handler.handle_authorizations(orderr, best_effort)
File â/usr/lib/python3/dist-packages/certbot/auth_handler.pyâ, line 82, in handle_authorizations
self._respond(aauthzrs, resp, best_effort)
File â/usr/lib/python3/dist-packages/certbot/auth_handler.pyâ, line 155, in _respond
self._poll_challenges(aauthzrs, chall_update, best_effort)
File â/usr/lib/python3/dist-packages/certbot/auth_handler.pyâ, line 226, in _poll_challenges
raise errors.FailedChallenges(all_failed_achalls)
certbot.errors.FailedChallenges: Failed authorization procedure. mail.mydomain.com (tls-sni-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Timeout during connect (likely firewall problem)
Additional Notes:
The firewall is set to log every drop and reject. kern.log shows nothing was dropped or rejected by the firewall at the time of the certbot error. Also tried temporarily disabling the firewall, with the same result. The server is reachable by users on public IP.