Cerbot renew failed


#1

My larzio.tpf.gov.tw ssl license is about to be expired. But I can not renew it.

My domain is: larzio.tpf.gov.tw

I ran this command: certbot renew

It produced this output:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/larzio.tpf.gov.tw.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for larzio.tpf.gov.tw
Waiting for verification...
Cleaning up challenges
Attempting to renew cert (larzio.tpf.gov.tw) from /etc/letsencrypt/renewal/larzio.tpf.gov.tw.conf produced an unexpected error: Failed authorization procedure. larzio.tpf.gov.tw (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://larzio.tpf.gov.tw/.well-known/acme-challenge/QwplkiDylF1Uev2STiVvyRx1Zf_awF3P677Uv1LNWz0: Timeout during connect (likely firewall problem). Skipping.
All renewal attempts failed. The following certs could not be renewed:
  /etc/letsencrypt/live/larzio.tpf.gov.tw/fullchain.pem (failure)

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

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

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

   Domain: larzio.tpf.gov.tw
   Type:   connection
   Detail: Fetching
   http://larzio.tpf.gov.tw/.well-known/acme-challenge/QwplkiDylF1Uev2STiVvyRx1Zf_awF3P677Uv1LNWz0:
   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): haproxy + apache

The operating system my web server runs on is (include version): CentOS 7

I can login to a root shell on my machine (yes or no, or I don’t know): yes

/etc/letsencrypt/renewal/larzio.rpf.gov.tw.conf

# renew_before_expiry = 30 days
version = 0.29.1
archive_dir = /etc/letsencrypt/archive/larzio.tpf.gov.tw
cert = /etc/letsencrypt/live/larzio.tpf.gov.tw/cert.pem
privkey = /etc/letsencrypt/live/larzio.tpf.gov.tw/privkey.pem
chain = /etc/letsencrypt/live/larzio.tpf.gov.tw/chain.pem
fullchain = /etc/letsencrypt/live/larzio.tpf.gov.tw/fullchain.pem

# Options used in the renewal process
[renewalparams]
authenticator = webroot
#installer = None
account = a24edf8eada446c35546fed895aa74ab

[[webroot_map]]
larzio.tpf.gov.tw = /var/www/html

I can read the directory http://larzio.tpf.gov.tw/.well-known/acme-challenge/index.html from other hosts

$ curl -I http://larzio.tpf.gov.tw/.well-known/acme-challenge/
HTTP/1.1 200 OK

dns is fine

$ curl -4 ipinfo.io/ip
210.241.1.73

#2

I don’t think it can be accessed from the Internet at this time.
Please check it from outside your network.


#3

This is a bad file to test (index.html).
Any misconfiguration could likely produce the same expected outcome - since that is a common start file name.
You should place an obviously unique named test file in that folder and try to access it.
Something without a dot like:
http://larzio.tpf.gov.tw/.well-known/acme-challenge/1234


#4

thank you
I think it’s the firewall issue, since I can access the url from some hosts in Internet, but some not.


#5

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