HTTP works but not HTTPS

Hey guys I could really use some help as i’m fairly new to all this. I have installed cert-bot and ran it. It gives me a success message then I test the site and it says the site can’t be reached but the http version works fine. I ran the site through check dns and the results can be found here : It shows I have certificates so not quite sure what the problem is. I think it might have something to do with my certificate name not having www. because If I curl it says subject name doesn’t match host name but if i curl just it works. Any help would be greatly appreciated!

My domain is:
I ran this command:
sudo certbot --apache
It produced this output:
My web server is (include version): apache2
The operating system my web server runs on is (include version):
ubuntu 16.04
My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know):
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): cerbot 0.31.0

Hi @Modzzz

you have created 5 identical certificates ( ):

CertSpotter-Id Issuer not before not after Domain names LE-Duplicate next LE
960846694 CN=Let's Encrypt Authority X3, O=Let's Encrypt, C=US 2019-06-10 23:40:19 2019-09-08 23:40:19 - 1 entries duplicate nr. 5 next Letsencrypt certificate: 2019-06-14 21:26:14
960831203 CN=Let's Encrypt Authority X3, O=Let's Encrypt, C=US 2019-06-10 23:27:17 2019-09-08 23:27:17 - 1 entries duplicate nr. 4
955322610 CN=Let's Encrypt Authority X3, O=Let's Encrypt, C=US 2019-06-07 21:58:23 2019-09-05 21:58:23 - 1 entries duplicate nr. 3
955404570 CN=Let's Encrypt Authority X3, O=Let's Encrypt, C=US 2019-06-07 21:57:49 2019-09-05 21:57:49 - 1 entries duplicate nr. 2
955278379 CN=Let's Encrypt Authority X3, O=Let's Encrypt, C=US 2019-06-07 21:26:14 2019-09-05 21:26:14 - 1 entries duplicate nr. 1

But there is only one domain name. You need one certificate with both domain names.

Start with

sudo certbot --apache -d -d

Your domain is invisible, so it's not possible to see, if the certificate is used.

Ok thank you! I ran that command and it asked which virtual host file to choose. It only gives me the option of choosing and I tried and it said “The selected vhost would conflict with other HTTPS VirtualHosts within Apache. Please select another vhost or add ServerNames to your configuration.” but I have bother server names in the .conf files

If you want to use non-www and www with the same content / certificate, you should have one port 80 vHost.


And no second port 80 vHost. Perhaps remove the wrong port 443 vHost if there is no domain online.

Then start Certbot again.

Ok I got them both in the same certificate but the https is still not working. the http site works fine Also I have only 1 port 80 vhost and 1 port 443 vhost in my sites enabled. I just deleted my port 443 vhost and reinstalled but I am getting the same problem.

Then recheck your domain to see, what has worked.

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