I ran this command: certbot-auto --apache – no problems reported
but not “green” https sign is not there.
Also ran: certbot-auto --apache --force-renewal , same result.
It produced this output:
checking certificate on SSL-labs says certificate belongs to “backupserver-hartings-se”, though my domain is hartings.se. A backup computer which acted as replacement server during a crash of my main server (Oct. 9th 2019) was indeed called backupserver.hartings.se and I did request SSL certificate for that server during the time it was active, from Oct 9th. Now I have moved back the repaired server (name server1.hartings.se), but the new certificate in my repaired server says, it is for “backupserver-hartings-se” instead of hartings.se. What should I do to get this right?
My web server is (include version): CENTOS 8 using certbot-auto
The operating system my web server runs on is (include version): Linux CENTOS 8
My hosting provider, if applicable, is: own
I can login to a root shell on my machine (yes or no, or I don’t know): I have physical access to machine
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): No. own hosting
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): 0.39.0
Thanks!
OK. I’l look at that immediately.
But do they need to be merged, or should one be deleted (the self-signed one)?
Which one is the self-signed one by the way?
I’ll look at the two files
/etc/httpd/conf.d/ssl.conf:40
/etc/httpd/conf/httpd-le-ssl.conf:2
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/hartings.se/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/hartings.se/privkey.pem
[root@server1 etc]#
/etc/httpd/conf.d/ssl.conf is the std config file.
This file includes two lines, which I think refers to the self-signed certificate?:
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
By commenting out these two lines, I cannot restart apache....
Don't know how to merge the files (what to include) and I wonder about a potential problem when the certificates will be renewed lateron in 3 months.
I want ot make sure that when my certificates are going to be renewed in 3 months, that the same problem will not occur again. Just deleting the two mentioned lines above in the std SSL config file should not cause any problems later, I think. Correct?
That's your port 80 vHost, that's not relevant to fix your wrong certificate. As written: Merge the two 443 vHosts in one -> merging -> one is to delete.
AFTER the section which refers to the self-signed certificates:
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
and # systemctl restart httpd
That solved the problem! A "green lock sign" is now again on my website!
Many thanks for pointing me to the right solution!!
There are different checks with different results. "check-your-website" -> your domain has a Grade B, missing HSTS. And some minor things you could fix - port 465 + 993 have the wrong certificate. That's not used to calculate the result, but it's good to use public trusted certificates.