SSL Cert Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
astroplay
Posts: 1
Joined: Mon Jan 18, 2021 7:31 am

SSL Cert Issue

Post by astroplay »

I've created and followed the steps listed in https://assets.nagios.com/downloads/nag ... s%20XI.pdf but I'm still seeing the WE Cert 2 certificate on the site when browsing to it even though the instructions have been followed thoroughly and I can see that the cert file does indeed contain the cert details generated from the Internal Intermediate CA.
openssl s_client -connect localhost:443 -CApath /etc/ssl is also showing details of the CA/Cert but it's indicating that it can't get the certificate of the issuer.
Do I need to import the certificates of both the Intermediate and/or Root CAs to resolve the issue or am I doing something wrong?
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: SSL Cert Issue

Post by dchurch »

When using an intermediate CA, the intermediate CA's certificate should probably be specified when the server presents the certificate. Here's how you set that up:

Near where it says SSLCertificateFile in your Apache configs (/etc/httpd/conf.d/ssl.conf by default in CentOS), you'll want to add the line:

Code: Select all

SSLCertificateChainFile /usr/local/nagiosxi/var/certs/cert-chain.crt
In that file you'll want to put the PEM-encoded text of the intermediate CA certificates, one after the other, like this:

Code: Select all

-----BEGIN CERTIFICATE-----
MIIDyTCCArGgAwIBAgIBADANBgkqhkiG9w0BAQsFADB/MQswCQYDVQQGEwJVUzES
...
aDloMsDhUd10bLDB1w==
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
MIIDyTCCArGgAwIBAgIBADANBgkqhkiG9w0BAQsFADB/MQswCQYDVQQGEwJVUzES
...
aDloMsDhUd10bLDB1w==
-----END CERTIFICATE-----
Then restart apache.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Locked