NCPA - Using a custom certificate

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.
Locked
christimpaler
Posts: 8
Joined: Wed Jan 09, 2013 1:38 am

NCPA - Using a custom certificate

Post by christimpaler »

Hello folks,
Currently I am testing NCPA as a replacement for NRPE which is now deprecated since version 4.0.1 .

I am trying to use a certificate by our own CA to avoid using the self-signed certfificate shippd with NCPA by default.

In ncpa.cfg I changed this:
certificate = var/ncpa.crt
#certificate = adhoc
Afterwards I replaced the content of the files var/ncpa.key and var/ncpa.crt .
After restarting NCPA the TLS connection fails.
In var/log/ncpa_listener.log I can see this:

Code: Select all

2020-04-20 14:13:12,213 6315 INFO started
2020-04-20 14:13:12,214 6315 INFO Using SSL version TLSv1_2
2020-04-20 14:13:12,215 6315 ERROR need more than 1 value to unpack
Traceback (most recent call last):
  File "ncpa_listener.py", line 83, in run
ValueError: need more than 1 value to unpack
Do you have any suggestions?
Best regards.
christimpaler
Posts: 8
Joined: Wed Jan 09, 2013 1:38 am

Re: NCPA - Using a custom certificate

Post by christimpaler »

I was too blind to read properly: https://www.nagios.org/ncpa/help.php#configuration
For custom certificates you must give the location to the .crt and the .key file as a comma separated value.
Options: adhoc or <path to .crt>,<path to .key>
Solved! Thread can be closed!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NCPA - Using a custom certificate

Post by benjaminsmith »

Excellent!

Glad you got it worked out.

Thank you for using the Nagios Community Forum.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked