CentOS7 & Apache 2.4 - Intermediate SSL cert errors?

Issues related to applications and software problems
Post Reply
Arizona1975
Posts: 1
Joined: 2017/02/21 03:21:00

CentOS7 & Apache 2.4 - Intermediate SSL cert errors?

Post by Arizona1975 » 2017/02/21 03:49:03

All-

Just moved our website from a CentOS-6 to a new CentOS-7 box. Naturally then, Apache was updated from a 2.2 to a 2.4 install:
  • OS Version: CentOS Linux release 7.3.1611 (Core)
    Linux kernel version: 3.10.0-514.6.1.el7.x86_64
    OpenSSL Version: 1.0.1e-fips
    Server version: Apache/2.4.6 (CentOS)
    Server built: Nov 14 2016 18:04:44
    Server's Module Magic Number: 20120211:24
Most everything works correctly, but we have some quirks that we can't seem to resolve. For one, there seems to be some confusion about how to serve up intermediate certificates when SSL is being used. On the old 2.2 server, this worked flawlessly and we never had an issue. However, when we ported the ssl.conf directives and cert files over to the new server, Apache 2.4 seems to "ignore" the intermediate certificate bundle, and running tests at sites like http://www.ssllabs.com fail with errors like "This server's certificate chain is incomplete." We have the necessary directives set:
  • SSLCertificateFile /var/www/certs/website.crt
    SSLCertificateKeyFile /root/sslkey/myserver.key
    SSLCertificateChainFile /var/www/certs/website.crt.ca-bundle
And the files are indeed there with the correct permissions. Seems like there is some other setting that needs to be tweaked in order for Apache to do its job? Welcome thoughts from the community.

-AZ

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: CentOS7 & Apache 2.4 - Intermediate SSL cert errors?

Post by aks » 2017/02/21 18:03:25

Just a (couple of) thought(s) really:
1) Check se labels on the files involved - is SELinux getting in the way?
2) With Nginx (possibly a old version now, can't quite remember), you could not have server cert, intermediate and CA certs. Ended up "bundling" intermediate with CA cert. worked fine.

Post Reply