Obtaining SSL certificate using Nginx Web Server

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: destpark.com

I ran this command: sudo certbot --nginx -d destpark.com -d www.destpark.com

It produced this output:
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. www.destpark.com (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://www.destpark.com/.well-known/acme-challenge/ZH4Qo5UJLHK-uj2cVPhEiqESnXpSFvq-oFoqGdVZDvw: Connection reset by peer, destpark.com (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://www.destpark.com/.well-known/acme-challenge/okFZhyakkp3m5xaPa7LTGsUik8vJdqp3rWhxh8KAodY: Connection reset by peer

IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: www.destpark.com
    Type: connection
    Detail: Fetching
    http://www.destpark.com/.well-known/acme-challenge/ZH4Qo5UJLHK-uj2cVPhEiqESnXpSFvq-oFoqGdVZDvw:
    Connection reset by peer

    Domain: destpark.com
    Type: connection
    Detail: Fetching
    http://www.destpark.com/.well-known/acme-challenge/okFZhyakkp3m5xaPa7LTGsUik8vJdqp3rWhxh8KAodY:
    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.

  • Your account credentials have been saved in your Certbot
    configuration directory at /etc/letsencrypt. You should make a
    secure backup of this folder now. This configuration directory will
    also contain certificates and private keys obtained by Certbot so
    making regular backups of this folder is ideal.

My web server is (include version): nginx web server

The operating system my web server runs on is (include version): Linux (ubuntu 18.04)

My hosting provider, if applicable, is: N/A

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 0.31.0

Hi @Kanka-max

your port 80 doesn't work. Change that.

A working port 80 / http is required if you want to use http validation.

PS:

First step: Works http internal, from that machine?

curl http://www.destpark.com/.well-known/acme-challenge/1234

If yes, second step: Firewall or routing problem.

PPS: Your configuration can't work - see https://check-your-website.server-daten.de/?q=destpark.com#url-checks

This domain is registered at Namecheap This domain was recently registered at Namecheap. Please check back later! . destpark.com This domain is registered at Namecheap This domain was recently registered at Namecheap. Please check back later! . destpark.com 2020 Copyright. All Rights Reserved. The Sponsored Listings displayed above are served automatically by a third party. Neither Parkingcrew nor the domain owner maintain any relationship with the advertisers. Privacy Policy

There is a parking page.

Host Type IP-Address is auth. ∑ Queries ∑ Timeout
destpark.com A 162.255.119.111 Phoenix/Arizona/United States (US) - Namecheap No Hostname found yes 1 0
AAAA yes
www.destpark.com CNAME parkingpage.namecheap.com yes 1 0
A 198.54.117.210 Atlanta/Georgia/United States (US) - Namecheap
Hostname: parkingpage.namecheap.com yes

You can't create a certificate via http validation if the A record points to a parking page.

The ip address must be your webserver.

Thank you @JuergenAuer for point that out. I made sure that port 80 is working before running. Seems my error is a result of using a parking page instead of a ready website. Let me correct that and reach out in case of anything.

1 Like

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