Connection reset by peer - error updating SSL certificate


My domain is:

I ran this command: ./certbot-auto certonly --webroot -w /srv/www/htdocs/ -d

It produced this output:
Plugins selected: Authenticator webroot, Installer None
Cert is due for renewal, auto-renewing...
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for
Using the webroot path /srv/www/htdocs for all unmatched domains.
Waiting for verification...
Challenge failed for domain
http-01 challenge for
Cleaning up challenges
Some challenges have failed.


  • The following errors were reported by the server:

    Type: connection
    Detail: Fetching
    Connection reset by peer

    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): Apache

The operating system my web server runs on is (include version):Linux 3.16.0-10-amd64 #1 SMP Debian 3.16.81-1 (2020-01-17) x86_64

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

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):certbot 1.9.0


I also tried to renew the certificate using getssl and got the following response:

root@mederi:/srv/www/certs/getssl# ./getssl

Registering account

Verify each domain


copying challenge token to /srv/www/htdocs/.well-known/acme-challenge/3UA8wvepzzQ2-4rY60fC-ZH3cDT5K6DcE546q4HtQ1s

sending request to ACME server saying we're ready for challenge

checking if challenge is complete


checking if challenge is complete

getssl: error: "detail": " Fetching Connection reset by peer",

I don't I don't know what's happening because I just want to renew, I have been using let's encrypt for many years as you can see it: |

help me please,

Hi @valar.ainur, and welcome to the LE community forum :slight_smile:

It is very likely that there is some GeoLocation blocking the requests.


You are almost certainly affected by a Palo Alto brand firewall.

You need to change the Palo Alto firewall to allow "acme-protocol" in its Applications section. Show your network team the two requests below. Both should result in a 404 but you can see the one with the user-agent like LE fails. We have seen this problem often.

# With a user-agent like Let's Encrypt - it fails
curl  -A "Mozilla/5.0 (compatible; Let's Encrypt validation server; +"
curl: (56) Recv failure: Connection reset by peer

# Without that user-agent, it works
<title>404 Not Found</title>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>

The work team in charge of network permissions tells me that they have not made any changes or adjustments to the FW environment policies since 4 months ago.

Is there any other possible suggestion that could perhaps be applied directly to my server ( in the apache configuration file httpd.conf or directive with .htaccess ?

No; The evidence is quite clear.
If they have a Palo Alto firewall, then the problem is within it.
That they haven't made any changes to it in four months, is irrelevant.
They claim no policy changes.
This is NOT a policy change - it is an IPS signature update that causes this issue.
It might have updated itself automatically.
It might have been less than 4 months ago when they made their last change.
It might be whatever...
It is definitely a Palo Alto firewall issue.


Thanks a lot.. for your time and suggestion.

I will continue to insist with the network department of my university to solve the problem, I still have one day left on the certificate license :-S


Show your network team the two example curl commands I provided.

They should be able to check the firewall logs to see one of those connections dropped.

The problem started when Palo Alto introduced a new config setting. They set the default to reject these kinds of http requests.

We have seen cases at universities where there are 2 Palo Alto firewalls. One at the outer edge and one at say a department level. Your network team should be able to help locate where the request gets rejected.


That's right, the problem was solved, the firewall was blocking the acme protocol...
The firewall was blocking the Acme protocol, but with the permissions open, the renewal was done successfull.

Very thank you for your comments and suggestions.