Page 1 of 1

NCPA - Using a custom certificate

Posted: Mon Apr 20, 2020 7:32 am
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.

Re: NCPA - Using a custom certificate

Posted: Tue Apr 28, 2020 2:57 am
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!

Re: NCPA - Using a custom certificate

Posted: Tue Apr 28, 2020 9:05 am
by benjaminsmith
Excellent!

Glad you got it worked out.

Thank you for using the Nagios Community Forum.