Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
I am trying to configure nagios core to use https instead of http.
I tried to follow the guide "Enhanced CGI Security and Authentication" in the Nagios Core documentation.
I installed/compiled Core by following this guide "Fedora Quickstart"
I tried "Implementing Digest Authentication"
but that failed with
Syntax error on line 35 of /etc/httpd/conf.d/nagios.conf:
Invalid command 'AuthDigestFile', perhaps misspelled or defined by a module not included in the server configuration
Please advise...
Last edited by dwhitfield on Mon Oct 17, 2016 9:08 am, edited 1 time in total.
Reason:marking with green check mark
Sounds like your apache isn't loading mod_auth_digest, but that section of the docs isn't required for SSL?
You need to follow more of the "Implementing Forced TLS/SSL" section. A close but not perfect procedure for a Core installation can be found here: Configuring SSL for Nagios XI
Digest authentication was intended to be more secure than basic authentication, but no longer fulfills that design goal. A man-in-the-middle attacker can trivially force the browser to downgrade to basic authentication. And even a passive eavesdropper can brute-force the password using today's graphics hardware, because the hashing algorithm used by digest authentication is too fast. Another problem is that the storage of the passwords on the server is insecure. The contents of a stolen htdigest file can be used directly for digest authentication. Therefore using mod_ssl to encrypt the whole connection is strongly recommended.
I do have the Digest Authentication working now.
I have installed the mod_ssl & openssl via yum.
I have generated the keys using the doc Configuring SSL for Nagios XI.
But when I get to the point of "Update Apache Configuration" I am not sure how
to adjust the ReWriteRule for Nagios Core.
Glad to hear it is resolved. I am going to lock the thread. Please feel free to post again if you have you another issue. Thank you for using the Nagios forums!