Cert not working without www


#1

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: www.zedelitoral.com / zedelitoral.com

I ran this command: Followed this instructions> https://certbot.eff.org/lets-encrypt/centosrhel7-apache

It produced this output: I can’t remember

My web server is (include version): Apache/2.4.6

The operating system my web server runs on is (include version): CentOS 7

My hosting provider, if applicable, is: One of the shareholders of my company

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

Extra> >result of certbot certificate

[root@zedelitoral ~]# certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Cannot extract OCSP URI from /etc/letsencrypt/live/zedelitoral.ec/cert.pem


Found the following certs:
Certificate Name: zedelitoral.ec
Domains: zedelitoral.ec www.zedelitoral.ec
Expiry Date: 2018-10-07 15:20:36+00:00 (VALID: 87 days)
Certificate Path: /etc/letsencrypt/live/zedelitoral.ec/fullchain.pem
Private Key Path: /etc/letsencrypt/live/zedelitoral.ec/privkey.pem


#2

If you want the cert to work with both zedelitoral.ec and www.zedelitoral.ec, you’ll need to have both names on the certificate.


#3

Hi @mvelasco93

your certificate is created correct with two names.

https://transparencyreport.google.com/https/certificates/STKWHBTmr7VYV5A21XITg%2FJLWj8u2%2FZ51U7MtarfWXQ%3D

https://www.zedelitoral.ec/ is correct and uses this certificate.

But https://zedelitoral.ec/ uses a self-signed certificate.

So your Apache-configuration of zedelitoral.ec is wrong.