I was getting close to have to renew and I did the same as last time but this time it said do a apt install certbot last time I had to install it with a git@github.com:certbot/certbot.git
Then doing a certbot renew got RED color errors. Replace my real domain name with XXXX.XXX
Attempting to renew cert (XXXX.XXX-0001) from /etc/letsencrypt/renewal/XXXX.XX-0001.conf produced an unexpected error: Failed authorization procedure. XXXX.XX (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://XXXX.XXX/.well-known/acme-challenge/x057a6BUHC_zmq68468LXO1BRcJV6QdIMZap_MN38f0: Timeout during connect (likely firewall problem). Skipping.
Maybe it was because it shows a http and not a https in the fetching red part.
Looks like it worked when I did this:
root@rayday:/media/6TB/USBdisk2-3TB/root/letsencrypt# certbot run -a webroot -i apache -w /media/6TB/USBdisk2-3TB/var/www -d XXXX.XXX
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer apache
Cert not yet due for renewal
You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.
(ref: /etc/letsencrypt/renewal/XXXX.XXX.conf)
What would you like to do?
-------------------------------------------------------------------------------
1: Attempt to reinstall this existing certificate
2: Renew & replace the cert (limit ~5 per 7 days)
-------------------------------------------------------------------------------
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for XXXX.XXX
Using the webroot path /media/6TB/USBdisk2-3TB/var/www for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. XXXX.XXX (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://XXXX.XXX/.well-known/acme-challenge/Iii8GxdSguDOVmcWwVlxzHjTjFJNC_bURhrzqtAVsYI: Timeout during connect (likely firewall problem)
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: XXXX.XXX
Type: connection
Detail: Fetching
http://XXXX.XXX/.well-known/acme-challenge/Iii8GxdSguDOVmcWwVlxzHjTjFJNC_bURhrzqtAVsYI:
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.
root@rayday:/media/6TB/USBdisk2-3TB/root/letsencrypt# ssl-cert-check -c /etc/letsencrypt/live/XXXX.XXX/cert.pem
Host Status Expires Days
----------------------------------------------- ------------ ------------ ----
FILE:/etc/letsencrypt/live/XXXX.XXX/cert.pem Valid Sep 9 2018 90
root@rayday:/media/6TB/USBdisk2-3TB/root/letsencrypt#
It says 90 days now so looks like it worked. Maybe this will help some one else.
-Raymond Day