I recently attributed a domain name to my instance and added a certificate with certbot. Here are the steps I went through in order to add the certificate:
I am still getting a timed out connection error for https://loicslegos.xyz/
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
Hi,
I would consider following places where a cause of the failure could possibly exist:
certbot
.1. nginx server block (virtual host) configuration. You mentioned you added your domain to
/etc/nginx/sites-enabled/default
file, and then you rancertbot
. Here is an example of such file after its modification bycertbot
. Compare it to yours.2. Check if nginx is listenning on port TCP 443, and if this port is open in a firewall.
To check what ports nginx is listening on, run:
If nginx is listening on port TCP 443, you should get result like that:
If nginx is not listening on TCP 443, then you need to check and correct your server block configuration in nginx (go to point 1). If nginx is listening on TCP 443, then you need to check if this port is open in your firewall. Here are the examples on how to list the rules for
iptables
andnftables
, however, you may have installed and run one of the programs for dynamic managing firewall rules, likeufw
orfirewalld
. In such case, you must look at their configuration rather than in iptables/nftables.3. Check Let’s Encrypt certificate(s) installed in your system.
Run the command:
If the certificate is installed, you should get the result like:
4. What else you can do ?
Check the logs of nginx and Let’s Encrypt. There may be some clue there. Here are the command examples for Ubuntu:
Let us know how it helps, pls.