I wanted to renew my certificates for my website but I cant seem to do it and it is expiring soon .
My domain is: faruse.com
I ran this command:sudo certbot renew --dry-run
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/faruse.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator nginx, Installer nginx
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for faruse.com
http-01 challenge for www.faruse.com
Waiting for verification...
Challenge failed for domain faruse.com
Challenge failed for domain www.faruse.com
http-01 challenge for faruse.com
http-01 challenge for www.faruse.com
Cleaning up challenges
Attempting to renew cert (faruse.com) from /etc/letsencrypt/renewal/faruse.com.conf produced an unexpected error: Some challenges have failed.. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/faruse.com/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
** DRY RUN: simulating 'certbot renew' close to cert expiry
** (The test certificates below have not been saved.)
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/faruse.com/fullchain.pem (failure)
** DRY RUN: simulating 'certbot renew' close to cert expiry
** (The test certificates above have not been saved.)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 renew failure(s), 0 parse failure(s)
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: faruse.com
Type: connection
Detail: Fetching
https://faruse.com/.well-known/acme-challenge/RnMkdZ5vu44QA4Xu_x0dqhXjQnfNhIiviK8QRfTbhBE:
Timeout during connect (likely firewall problem)
Domain: www.faruse.com
Type: connection
Detail: Fetching
https://www.faruse.com/.well-known/acme-challenge/r5_ueYajWrZDNtmBgXFzijdnJggDzCgKte5rw1Cn-dc:
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): nginx 1.18 with Nodejs + express in port 5000
The operating system my web server runs on is (include version): Ubuntu 20.04
My hosting provider, if applicable, is: Cloudflare
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
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): 0.40.0
I have been reading and it seems like most says that it is because my port 80 is not open, but when I run : sudo netstat -ntlp | grep LISTEN
I get this :
tcp 0 0 127.0.0.1:33060 0.0.0.0:* LISTEN 1061232/mysqld
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1061232/mysqld
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2732734/nginx: mast
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 600/systemd-resolve
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1971950/sshd: /usr/
tcp 0 0 0.0.0.0:7000 0.0.0.0:* LISTEN 2407557/python3
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 2732734/nginx: mast
tcp6 0 0 :::5000 :::* LISTEN 2407862/node /root/
tcp6 0 0 :::80 :::* LISTEN 2732734/nginx: mast
tcp6 0 0 :::22 :::* LISTEN 1971950/sshd: /usr/
tcp6 0 0 :::443 :::* LISTEN 2732734/nginx: mast
So I am not sure what am i doing wrong, any help will be appreciated.
Thanks in advance.