My issue is that I do not see letsencrypt try to access my server on the firewall.
If I try to access the acme-challenge file externally (from my phone) I do have access to the file.
Thus the server is properly setup and the ddns is properly resolving the host fqdn
What could be the issue?
My domain is: study.klomp.ca
I ran this command: sudo certbot certonly --apache --dry-run -d study.klomp.ca
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for study.klomp.ca
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. study.klomp.ca (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://study.klomp.ca/.well-known/acme-challenge/CPg93NGPfjJ1xseCsUH5nmZIZ5OCkFIrX9gt1JWRmlQ: Timeout during connect (likely firewall problem)IMPORTANT NOTES:
The following errors were reported by the server:
Domain: study.klomp.ca
Type: connection
Detail: Fetching
http://study.klomp.ca/.well-known/acme-challenge/CPg93NGPfjJ1xseCsUH5nmZIZ5OCkFIrX9gt1JWRmlQ:
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): apache2 2.4.18-2ubuntu3.10
The operating system my web server runs on is (include version): Ubuntu 16.04.6 LTS
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): no, ssh
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): certbot 0.31.0
My FQDN is resolving properly:
; <<>> DiG 9.10.3-P4-Ubuntu <<>> study.klomp.ca 1.1.1.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47193
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;study.klomp.ca. IN A;; ANSWER SECTION:
study.klomp.ca. 1800 IN CNAME klomp.zanity.net.
klomp.zanity.net. 60 IN A 149.248.114.142;; Query time: 132 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Sat Apr 06 23:25:27 EDT 2019
;; MSG SIZE rcvd: 89;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53294
;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1280
;; QUESTION SECTION:
;1.1.1.1. IN A;; ANSWER SECTION:
1.1.1.1. 0 IN A 1.1.1.1;; Query time: 0 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Sat Apr 06 23:25:27 EDT 2019
;; MSG SIZE rcvd: 52