I install a CentOS7 64bit and Nagios Core version 4.0.7 in a virtual machine. I can access the webpage of Nagios Core server after install and configure, after then I wish to securite the nagios server, i install the SSL components for the CentOS server, genertae a key and configure the SSL setting.
However, I found a different situation when I access the nagios server with SSL, the detail situation show as below.
Situation 1: https://<nagios-server-ip>, the icon of url bak right show a "locked", and then click the icon which show "The connection to this website is secure" message
Situation 2: https://<nagios-server-ip>/nagios, the icon of url bak right show a "dialog warning", and then click the icon which show "The connection to this website is not secure because it contains unencrypted elements(such as image)" message
Nagios 4.0.7 and SSL problem
Re: Nagios 4.0.7 and SSL problem
Did you enable SSL in the /etc/httpd/conf.d/nagios.conf file?
Can you post it so we can review it?
Can you post it so we can review it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios 4.0.7 and SSL problem
Yep , I remove the command "#" for "SSLRequireSSL" sentence. I copy & paste the /etc/httpd/conf.d/nagios.conf file as below.
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Re: Nagios 4.0.7 and SSL problem
When you click 'more information' does your SSL certificate show up?
Former Nagios Employee
Re: Nagios 4.0.7 and SSL problem
I just install later version 4.1.1, the problem has been fixed
Re: Nagios 4.0.7 and SSL problem
Thanks for that update and glad to hear this is resolved. We'll lock this thread now but feel free to open another should you require assistance with anything else.
Be sure to check out the Knowledgebase for helpful articles and solutions!