Nagios Core web interface with SSL support on Ubuntu

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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios Core web interface with SSL support on Ubuntu

Post by ssax »

Please send me your ports.conf if you have it:

Code: Select all

find / -name ports.conf
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios Core web interface with SSL support on Ubuntu

Post by ssax »

Does this make it work? Please post the output as well:

Code: Select all

sudo a2enmod ssl
sudo systemctl restart apache2
xlin125
Posts: 172
Joined: Mon Jan 19, 2015 6:01 pm

Re: Nagios Core web interface with SSL support on Ubuntu

Post by xlin125 »

On March 12, I posted the port.conf file. Let me post it here again:

cat /etc/apache2/ports.conf
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf

Listen 80 443

<IfModule ssl_module>
Listen 443
</IfModule>

<IfModule mod_gnutls.c>
Listen 443
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

I also enabled the ssl (see the apache2-Files.tar.gz) and then restarted apache2 (as root):
a2enmod ssl
/etc/init.d/apache2 restart

However, the connection to the port 443 still got refused (even locally tried to connect to the loop backup IP 127.0.0.1 and the IP address that Apache2 URL is accessed).
melidonis
Posts: 4
Joined: Mon Mar 18, 2019 9:06 am

Re: Nagios Core web interface with SSL support on Ubuntu

Post by melidonis »

Do you get "Connected to 127.0.0.1" if you try

Code: Select all

telnet 127.0.0.1 443
You can also try

Code: Select all

openssl s_client -connect 127.0.0.1:443
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios Core web interface with SSL support on Ubuntu

Post by ssax »

Ok, let's look at all the files, please run this command and send me the

Code: Select all

/tmp/HTTPFILES2.zip
file so that I can import them into my lab:

Code: Select all

zip -r /tmp/HTTPDFILES2.zip /etc/apache2/
Locked