Connection refused when trying to renew certificate

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: madisonmycologicalsociety.com

I ran this command: certbot renew --dry-run

It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log


Processing /etc/letsencrypt/renewal/madisonmycologicalsociety.com.conf


Cert is due for renewal, auto-renewing…
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for madisonmycologicalsociety.com
http-01 challenge for www.madisonmycologicalsociety.com
Waiting for verification…
Cleaning up challenges
Attempting to renew cert (madisonmycologicalsociety.com) from /etc/letsencrypt/renewal/madisonmycologicalsociety.com.conf produced an unexpected error: Failed authorization procedure. madisonmycologicalsociety.com (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching https://madisonmycologicalsociety.com/.well-known/acme-challenge/SlQu6j6nTa3XRX3IGq4RZJR1HlF-sKDdh8bY3OIp00M: Connection refused, www.madisonmycologicalsociety.com (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching https://www.madisonmycologicalsociety.com/.well-known/acme-challenge/W6kuG2NgCT4hot-zp0p_KdLhchuT2hlLu0u-QlwUddc: Connection refused. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/madisonmycologicalsociety.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/madisonmycologicalsociety.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:

My web server is (include version): OpenLiteSpeed 1.4.46

The operating system my web server runs on is (include version): Ubuntu 18.04.2 LTS

My hosting provider, if applicable, is: Digital Ocean

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): nope!

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

I’m not sure exactly what the problem is and I’m also relatively new to this stuff. We have a google domain and were using google’s DNS servers for our A and AAAA records, but I think when I issued our original certificate it was on Digital Ocean’s name servers, so I switched it back to try and renew the certs. Still getting the connection refused errors… I tried renewing by ssh-ing from my phone as well (using a different internet service) and also received the same errors… any help would be greatly appreciated.

Hi @gunha

your configuration looks broken ( https://check-your-website.server-daten.de/?q=madisonmycologicalsociety.com ):

Checking your DNS

Host T IP-Address is auth. ∑ Queries ∑ Timeout
madisonmycologicalsociety.com A yes 1 0
AAAA 2604:a880:400:d1::6ee:7001 yes
www.madisonmycologicalsociety.com Name Error yes 1 0
madisonmycologicalsociety.com A 68.183.110.193 no
www.madisonmycologicalsociety.com A 68.183.110.193 no

looks like an inconsistent configuration, one AAAA record, ipv4 isn't visible via your authoritative name servers.

Your DNSSEC isn't consistent. The parent zone doesn't have a DS record, but your zone sends DNSKEY RR.

And really critical:

Domainname Http-Status redirect Sec. G
http://madisonmycologicalsociety.com/
68.183.110.193 301 https://madisonmycologicalsociety.com/ 0.210 A
http://www.madisonmycologicalsociety.com/
68.183.110.193 301 https://www.madisonmycologicalsociety.com/ 0.207 A
http://madisonmycologicalsociety.com/
2604:a880:400:d1::6ee:7001 -2 1.304 V
ConnectFailure - Unable to connect to the remote server No connection could be made because the target machine actively refused it [2604:a880:400:d1::6ee:7001]:80
https://madisonmycologicalsociety.com/
68.183.110.193 307 Madison Mycological Society – the website for mycophiles in Madison WI 0.763 N
Certificate error: RemoteCertificateChainErrors
https://www.madisonmycologicalsociety.com/
68.183.110.193 301 https://madisonmycologicalsociety.com/ 0.767 N
Certificate error: RemoteCertificateChainErrors
https://madisonmycologicalsociety.com/
2604:a880:400:d1::6ee:7001 -2 1.300 V
ConnectFailure - Unable to connect to the remote server No connection could be made because the target machine actively refused it [2604:a880:400:d1::6ee:7001]:443
Madison Mycological Society – the website for mycophiles in Madison WI 200 5.170 N
Certificate error: RemoteCertificateChainErrors
http://madisonmycologicalsociety.com/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de
68.183.110.193 301 https://madisonmycologicalsociety.com/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de 0.207 A
Visible Content:
http://www.madisonmycologicalsociety.com/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de
68.183.110.193 301 https://www.madisonmycologicalsociety.com/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de 0.206 A
Visible Content:
http://madisonmycologicalsociety.com/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de
2604:a880:400:d1::6ee:7001 -2 1.300 V
ConnectFailure - Unable to connect to the remote server No connection could be made because the target machine actively refused it [2604:a880:400:d1::6ee:7001]:80
Visible Content:
https://madisonmycologicalsociety.com/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de 307 https://madisonmycologicalsociety.com/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de/?v=e71bc9c013d9 3.346 N
Certificate error: RemoteCertificateChainErrors
Visible Content:
https://www.madisonmycologicalsociety.com/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de 301 https://madisonmycologicalsociety.com/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de 4.650 N
Certificate error: RemoteCertificateChainErrors
Visible Content:
https://madisonmycologicalsociety.com/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de/?v=e71bc9c013d9 404 3.713 N

If you use http-01 validation, Certbot creates a file in /.well-known/acme-challenge, Letsencrypt checks that file and prefers ipv6. But your ipv6 doesn't work.

There are curious redirects:

https://madisonmycologicalsociety.com/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de

	307
https://madisonmycologicalsociety.com/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de/?v=e71bc9c013d9

?v=e71bc9c013d9.

Perhaps remove your ipv6, then wait a moment.

X Fatal error: Nameservers mit different SOA Serial Numbers

That's always bad.

If all Serial Numbers are the same, try to create a new certificate.

1 Like

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