Can't renew certificates


#1

My domain is: ch.zink.red

I ran this command: sudo /root/letsencrypt/certbot-auto renew --force-renewal

It produced this output:

sudo /root/letsencrypt/certbot-auto renew --force-renewal
Upgrading certbot-auto 0.29.1 to 0.30.0...
Replacing certbot-auto...
Creating virtual environment...
Installing Python packages...
Installation succeeded.
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/ch.zink.red.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Plugins selected: Authenticator nginx, Installer nginx
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for ch.zink.red
Waiting for verification...
Cleaning up challenges
Attempting to renew cert (ch.zink.red) from /etc/letsencrypt/renewal/ch.zink.red.conf produced an unexpected error: Failed authorization procedure. ch.zink.red (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://ch.zink.red/.well-known/acme-challenge/pCDk4qR-cQ7fVCUD8hgJ3AUH9n5pQVpC6owJEI2jzJo: Error getting validation data. Skipping.
All renewal attempts failed. The following certs could not be renewed:
  /etc/letsencrypt/live/ch.zink.red/fullchain.pem (failure)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

All renewal attempts failed. The following certs could not be renewed:
  /etc/letsencrypt/live/ch.zink.red/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 renew failure(s), 0 parse failure(s)

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: ch.zink.red
   Type:   connection
   Detail: Fetching
   http://ch.zink.red/.well-known/acme-challenge/pCDk4qR-cQ7fVCUD8hgJ3AUH9n5pQVpC6owJEI2jzJo:
   Error getting validation data

   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.10.2

The operating system my web server runs on is (include version): CentOS Linux release 7.2.1511 (Core)

My hosting provider, if applicable, is:

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


#2

HTTPS validations are being replaced with HTTP validations.
It seems your site is not accessible via HTTP:
wget http://ch.zink.red/
returns:
–2019-01-16 14:02:40-- http://ch.zink.red/
Resolving ch.zink.red (ch.zink.red)… 153.126.167.144
Connecting to ch.zink.red (ch.zink.red)|153.126.167.144|:80… failed: No route to host.


#3

Thank you for your reply.
Our firewall’s port:80 was not opened… :sweat_smile:
So now I’ve just changed the setting.

sudo firewall-cmd --permanent --add-service=http

Then the renew command have succeeded.


#4

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