Need help configuring SSL with Nagios xi

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Need help configuring SSL with Nagios xi

Post 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.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Need help configuring SSL with Nagios xi

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: Need help configuring SSL with Nagios xi

Post 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