A SSL test complained about a self-signed cert also in the chain. The web page recommended I edit the chain file and remove a cert. I did, but I think I deleted the wrong cert.
It’s CentOS6 running Apache2 serving 6 pages. The problem page, precip.gsfc.nasa.gov, is also the hostname associated with the IP address. All other pages are fine.
Can I regenerate the deleted cert? Would it be better to just get a new cert? If so, how do I prevent the self-signed cert from being included in the chain?
Thanks,
tj
because a quick look at vhost config seems OK. I don’t think certbot add a personnal certificate any where. But here : looking at the screen : seems not the LE key ?
The ssl check says the cert is current:
Signature Algorithm: sha256WithRSAEncryption
Issuer: C=US, O=Let’s Encrypt, CN=Let’s Encrypt Authority X3
Validity
Not Before: Jan 19 16:39:00 2017 GMT
Not After : Apr 19 16:39:00 2017 GMT
I captured everything with a “script” command and can send the output
file if you wish.
Did you previously manually edit one of the files within /etc/letsencrypt to add or import some non-Let’s Encrypt cert to it? The Certbot software should not have added that cert to any of those files on its own.
In answer to Seth Schoen’s question, No. However, I moved a file
named “le-redirect-precip.gsfc.nasa.gov.conf” to /var/tmp.
============Seth’s Question==============================
Did you previously manually edit one of the files within /etc/letsencrypt to add or import some non-Let’s Encrypt cert to it?
The Certbot software should not have added that cert to any of those
files on its own.
The host is running CentOS 6.8. The directory name is /etc/httpd
instead of /etc/apache2. I captured the “grep” command and have
included the entire script output below. I have included the (current)
ssl.conf file.
I purchased the “Red Hat Enterprise Linux 6 Administration” book and am
about to read the section on “Configuring the Apache Web Server”. I’m
sure I’ll learn something… I sure hope it’s enough.
Ted Jackson
=========================== SSL_Certificates.txt ===========================
Script started on Fri 03 Feb 2017 08:22:30 AM EST
e]0;tjackson@gs612-meso:/etc/httpd/webpages.dae[?1034h[root@gs612-meso webpages.d]# grep -r SSLCertificate /etc/apache2e[Ke[Ke[Ke[Ke[Ke[Ke[Khttpd
/etc/httpd/webpages.d/goes.active: SSLCertificateFile /etc/letsencrypt/live/goes.gsfc.nasa.gov/cert.pem
/etc/httpd/webpages.d/goes.active: SSLCertificateKeyFile /etc/letsencrypt/live/goes.gsfc.nasa.gov/privkey.pem
/etc/httpd/webpages.d/goes.active: SSLCertificateChainFile /etc/letsencrypt/live/goes.gsfc.nasa.gov/fullchain.pem
/etc/httpd/webpages.d/glow.active: SSLCertificateFile /etc/letsencrypt/live/glow.gsfc.nasa.gov/cert.pem
/etc/httpd/webpages.d/glow.active: SSLCertificateKeyFile /etc/letsencrypt/live/glow.gsfc.nasa.gov/privkey.pem
/etc/httpd/webpages.d/glow.active: SSLCertificateChainFile /etc/letsencrypt/live/glow.gsfc.nasa.gov/fullchain.pem
/etc/httpd/webpages.d/tennisclub.active: SSLCertificateFile /etc/letsencrypt/live/tennisclub.gsfc.nasa.gov/cert.pem
/etc/httpd/webpages.d/tennisclub.active: SSLCertificateKeyFile /etc/letsencrypt/live/tennisclub.gsfc.nasa.gov/privkey.pem
/etc/httpd/webpages.d/tennisclub.active: SSLCertificateChainFile /etc/letsencrypt/live/tennisclub.gsfc.nasa.gov/fullchain.pem
/etc/httpd/webpages.d/precip.active: SSLCertificateFile /etc/letsencrypt/live/precip.gsfc.nasa.gov-0001/cert.pem
/etc/httpd/webpages.d/precip.active: SSLCertificateKeyFile /etc/letsencrypt/live/precip.gsfc.nasa.gov-0001/privkey.pem
/etc/httpd/webpages.d/precip.active: SSLCertificateChainFile /etc/letsencrypt/live/precip.gsfc.nasa.gov-0001/chain.pem
/etc/httpd/webpages.d/har.active: SSLCertificateFile /etc/letsencrypt/live/har.gsfc.nasa.gov/cert.pem
/etc/httpd/webpages.d/har.active: SSLCertificateKeyFile /etc/letsencrypt/live/har.gsfc.nasa.gov/privkey.pem
/etc/httpd/webpages.d/har.active: SSLCertificateChainFile /etc/letsencrypt/live/har.gsfc.nasa.gov/fullchain.pem
/etc/httpd/webpages.d/twilite.active: SSLCertificateFile /etc/letsencrypt/live/twilite.gsfc.nasa.gov/cert.pem
/etc/httpd/webpages.d/twilite.active: SSLCertificateKeyFile /etc/letsencrypt/live/twilite.gsfc.nasa.gov/privkey.pem
/etc/httpd/webpages.d/twilite.active: SSLCertificateChainFile /etc/letsencrypt/live/twilite.gsfc.nasa.gov/fullchain.pem
/etc/httpd/conf.d/ssl.conf:# Point SSLCertificateFile at a PEM encoded certificate. If
/etc/httpd/conf.d/ssl.conf:# SSLCertificateFile /etc/pki/tls/certs/localhost.crt
/etc/httpd/conf.d/ssl.conf:SSLCertificateFile /etc/pki/tls/certs/ca.crt
/etc/httpd/conf.d/ssl.conf:# SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
/etc/httpd/conf.d/ssl.conf:SSLCertificateKeyFile /etc/pki/tls/private/ca.key
/etc/httpd/conf.d/ssl.conf:# Point SSLCertificateChainFile at a file containing the
/etc/httpd/conf.d/ssl.conf:# the referenced file can be the same as SSLCertificateFile
/etc/httpd/conf.d/ssl.conf:#SSLCertificateChainFile /etc/pki/tls/certs/server-chain.crt
/etc/httpd/conf.d/ssl.conf:#SSLCertificateChainFile /etc/letsencrypt/live/precip.gsfc.nasa.gov-0001/chain.pem
/etc/httpd/inactive/thar.inactive: SSLCertificateFile /etc/letsencrypt/live/har.gsfc.nasa.gov/cert.pem
/etc/httpd/inactive/thar.inactive: SSLCertificateKeyFile /etc/letsencrypt/live/har.gsfc.nasa.gov/privkey.pem
/etc/httpd/inactive/thar.inactive: SSLCertificateChainFile /etc/letsencrypt/live/har.gsfc.nasa.gov/fullchain.pem
e]0;tjackson@gs612-meso:/etc/httpd/webpages.da[root@gs612-meso webpages.d]# exit
Script done on Fri 03 Feb 2017 08:22:47 AM EST
====================== end SSL_Certificates.txt ===========================
=========================== ssl.conf ===========================
I commented them both out and now, even though the “apachectl -t” says
"Syntax ok", httpd does not start at all. As expected, the result of
the SSL test is:
Can you paste that file ( on pastebin.com or somewhere) or just change the links to LE certs rather than the /etc/pki/tls/certs/ certs ( so that it will run - and at least confirm if that is the sourse )