i have problems configuring a certificate for NCPA when running under windows:
OS: MS Windows 2019 Server
Version: NCPA 2.4.0
i started NCPA with certificate = adhoc in var/ncpa.cfg
NCPA created var/ncpa.crt and var/ncpa.key
NCPA started up and i could connect using browser and wget (with --no-check-certificate)
next i started NCPA with certificate = var/ncpa.crt , var/ncpa.key
NCPA started up and all seems to be fine; see var/log/ncpa_listener.log:
2022-10-04 13:04:12,224:INFO:ncpa_windows:Parsed config from: ['C:\\Program Files (x86)\\Nagios\\NCPA\\etc\\ncpa.cfg', 'C:\\Program Files (x86)\\Nagios\\NCPA\\etc\\ncpa.cfg.d\\example.cfg'] 2022-10-04 13:04:12,224:INFO:ncpa_windows:Looking for plugins at: C:\Program Files (x86)\Nagios\NCPA\plugins 2022-10-04 13:04:12,224:INFO:ncpa_windows:Delayed start in configuration. Waiting 5 seconds to start. 2022-10-04 13:04:17,226:INFO:ncpa_windows:Using SSL version TLSv1_2
But when i try to connect using browser i get: "no valid connection"
when using wget i get: " GnuTLS: Error in the pull function."
It seems like ssl didn't work at all.
so my questions are:
how is correct configuration of certificate?
do i have to configure an absolute or relative path?
which quoting to use (single quotes, double quotes, slash, double backslash, ...)?
an absolute path according to windows conditions works (e.g. c:\some path\and there is\NCPA)
with spaces
with single backslash
no quoting
works and
no spaces before and after the path are allowed (e.g. certificate =c:\some path\and there is\NCPA\certfile.crt,c:\some path\and there is\NCPA\keyfile.key)
hello,
i have problems configuring a certificate for NCPA when running under windows:
OS: MS Windows 2019 Server Version: NCPA 2.4.0
i started NCPA with
certificate = adhoc
in var/ncpa.cfg NCPA createdvar/ncpa.crt
andvar/ncpa.key
NCPA started up and i could connect using browser and wget (with --no-check-certificate)next i started NCPA with
certificate = var/ncpa.crt , var/ncpa.key
NCPA started up and all seems to be fine; see var/log/ncpa_listener.log:2022-10-04 13:04:12,224:INFO:ncpa_windows:Parsed config from: ['C:\\Program Files (x86)\\Nagios\\NCPA\\etc\\ncpa.cfg', 'C:\\Program Files (x86)\\Nagios\\NCPA\\etc\\ncpa.cfg.d\\example.cfg'] 2022-10-04 13:04:12,224:INFO:ncpa_windows:Looking for plugins at: C:\Program Files (x86)\Nagios\NCPA\plugins 2022-10-04 13:04:12,224:INFO:ncpa_windows:Delayed start in configuration. Waiting 5 seconds to start. 2022-10-04 13:04:17,226:INFO:ncpa_windows:Using SSL version TLSv1_2
But when i try to connect using browser i get: "no valid connection" when using wget i get: " GnuTLS: Error in the pull function."
It seems like ssl didn't work at all.
so my questions are:
best, Florian