Page 1 of 1

Need help configuring SSL with Nagios XI

Posted: Mon Apr 23, 2012 11:01 am
by tgfde
Hello,

I'm trying to configure SSL with Nagios XI by following the documentation (Nagios XI - Configuring SSL with Nagios XI) from Nagios but having a problem copying the three files (ca.crt, ca.key, ca.csr). When executing the cp command, it tells me "No such file or directory". So I tried to locate the file with the locate command but received no result.

FYI - I installed mod_ssl and generated the key with no problem.

Thanks in advanced.

Re: Need help configuring SSL with Nagios XI

Posted: Mon Apr 23, 2012 12:15 pm
by lmiltchev
After running these commands:

Code: Select all

openssl genrsa -out ca.key 2048
openssl req -new -key ca.key -out ca.csr
openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt
you should have "ca.crt", "ca.key", and "ca.csr" files created in the directory you are currently in.

Go to the "tmp" directory and try running these commands again.

Code: Select all

cd /tmp
openssl genrsa -out ca.key 2048
openssl req -new -key ca.key -out ca.csr
openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt
The newly generated files should be in the "/tmp" directory now.
F.Y.I. Sometimes, locate would not find a new file - you will have to run "updatedb" first.
Hope this helps.

Re: Need help configuring SSL with Nagios XI

Posted: Fri May 18, 2012 3:09 pm
by tgfde
Hi lmiltchev.

I ran the commands again from /tmp directory and it worked. However, it did not create the ca.crt file.

Thanks,
Frederick