Https redirects but shows 'This site can’t be reached'

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:
http://dofriendly.com/

I ran this command:
sudo certbot --nginx

It produced this output:
ubuntu@ip-172-31-24-214:~$ sudo certbot --nginx
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx

Which names would you like to activate HTTPS for?


1: dofriendly.com
2: www.dofriendly.com


Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1,2
Cert not yet due for renewal

You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.
(ref: /etc/letsencrypt/renewal/dofriendly.com.conf)

What would you like to do?


1: Attempt to reinstall this existing certificate
2: Renew & replace the cert (limit ~5 per 7 days)


Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 1
Keeping the existing certificate
Deploying Certificate to VirtualHost /etc/nginx/sites-enabled/dofriendly
Deploying Certificate to VirtualHost /etc/nginx/sites-enabled/dofriendly

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.


1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.


Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Redirecting all traffic on port 80 to ssl in /etc/nginx/sites-enabled/dofriendly
Redirecting all traffic on port 80 to ssl in /etc/nginx/sites-enabled/dofriendly


Congratulations! You have successfully enabled https://dofriendly.com and
https://www.dofriendly.com

You should test your configuration at:



IMPORTANT NOTES:

  • Congratulations! Your certificate and chain have been saved at:
    /etc/letsencrypt/live/dofriendly.com/fullchain.pem
    Your key file has been saved at:
    /etc/letsencrypt/live/dofriendly.com/privkey.pem
    Your cert will expire on 2021-04-15. To obtain a new or tweaked
    version of this certificate in the future, simply run certbot again
    with the "certonly" option. To non-interactively renew all of
    your certificates, run "certbot renew"

  • If you like Certbot, please consider supporting our work by:

    Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
    Donating to EFF: https://eff.org/donate-le

My web server is (include version):
nginx version: nginx/1.14.0 (Ubuntu)

The operating system my web server runs on is (include version):
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

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 0.31.0

1 Like

Welcome to the Let's Encrypt Community :slightly_smiling_face:

Well... your port 443 (HTTPS) is closed, so redirecting from port 80 (HTTP) to port 443 (HTTPS) will result in no one being able to receive a useful response from your webserver.

Thank you, by the way, for choosing to reinstall your existing certificate rather than acquiring a duplicate certificate. It shows your wisdom in recognizing the existence of an installation problem rather than an acquisition problem.

4 Likes

That was so dumb of me :sweat_smile:, thank you so much :slightly_smiling_face:

1 Like

It happens. I've done worse. :slightly_smiling_face:

1 Like

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