Connection reset by peer

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:

I ran this command: /usr/bin/certbot renew

It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
{
"identifier": {
"type": "dns",
"value": "apresentacao.avia.cge.ce.gov.br"
},
"status": "invalid",
"expires": "2022-04-06T09:35:01Z",
"challenges": [
{
"type": "http-01",
"status": "invalid",
"error": {
"type": "urn:ietf:params:acme:error:connection",
"detail": "Fetching http://apresentacao.avia.cge.ce.gov.br/.well-known/acme-challenge/wCRYfIcF_SuR_lPlGg_DgKUqHtAo1VuT8keUulv4HGw: Connection reset by peer",
"status": 400
},


Processing /etc/letsencrypt/renewal/apresentacao.avia.cge.ce.gov.br.conf


Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator nginx, Installer nginx
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Renewing an existing certificate for apresentacao.avia.cge.ce.gov.br
Performing the following challenges:
http-01 challenge for apresentacao.avia.cge.ce.gov.br
Waiting for verification...
Challenge failed for domain apresentacao.avia.cge.ce.gov.br
http-01 challenge for apresentacao.avia.cge.ce.gov.br
Cleaning up challenges
^CExiting due to user request.

IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: apresentacao.avia.cge.ce.gov.br
    Type: connection
    Detail: Fetching
    http://apresentacao.avia.cge.ce.gov.br/.well-known/acme-challenge/wCRYfIcF_SuR_lPlGg_DgKUqHtAo1VuT8keUulv4HGw:
    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.
    Você tem mensagem nova de correio em /var/spool/mail/root
    My web server is (include version):
    nginx/1.20.1
    The operating system my web server runs on is (include version):
    CentOS Linux release 7.9.2009 (Core

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

Can you open this URL? (It should either show something or a 404 error)

Is your firewall blocking connection from outside Brazil?

The validation servers are in the US and Europe.

2 Likes

I get 403 Forbidden:

curl -Ii http://apresentacao.avia.cge.ce.gov.br/.well-known/acme-challenge/wCRYfIcF_SuR_lPlGg_DgKUqHtAo1VuT8keUulv4HGw
HTTP/1.1 403 Forbidden
Server: nginx/1.20.1
Date: Wed, 30 Mar 2022 12:52:35 GMT
Content-Type: text/html
Content-Length: 153
Connection: keep-alive
2 Likes

I got connection reset by peer (in korea) so I guess some geoblocking there?

curl -v http://apresentacao.avia.cge.ce.gov.br/.well-known/acme-challenge/wCRYfIcF_SuR_lPlGg_DgKUqHtAo1VuT8keUulv4HGw
*   Trying 189.90.161.108:80...
* TCP_NODELAY set
* Connected to apresentacao.avia.cge.ce.gov.br (189.90.161.108) port 80 (#0)
> GET /.well-known/acme-challenge/wCRYfIcF_SuR_lPlGg_DgKUqHtAo1VuT8keUulv4HGw HTTP/1.1
> Host: apresentacao.avia.cge.ce.gov.br
> User-Agent: curl/7.68.0
> Accept: */*
>
* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer
2 Likes

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