SSL for nrpe -> nsclient++
Posted: Fri May 25, 2018 11:10 am
Hi.
I´m facing an issue with check_nrpe and nsclient++ and we want to enable SSL communication.
I installed NSCP 0.5.2.35 in a Windows Server 2008 R2 x64 SP1.
I upgraded check_nrpe to version 3.2.1 following this doc https://support.nagios.com/kb/article.php?id=520 and this https://support.nagios.com/kb/article.php?id=515
Later, i created the certificates and keys following this doc https://support.nagios.com/kb/article.php?id=519 and copied the client certs to the server running nsclient++.
In the Windows Server i edited the nsclient.ini file to reference the certs path and to allowed ssl communication.
I execute the check_nrpe command in the nagiosxi server referencing the server paths and including the -H and the client IP (i deleted the client IP):
[root@nagiossrv ssl]# /usr/local/nagios/libexec/check_nrpe -H [client IP] -C /usr/local/nagios/etc/ssl/nagios_server_certs/nagios_server.pem -K /usr/local/nagios/etc/ssl/nagios_server_certs/nagios_server.key -A /usr/local/nagios/etc/ssl/ca/ca_cert.pem
I (0.5.2.35 2018-01-28) seem to be doing fine...
[root@nagiossrv ssl]
But the /var/log/messages says:
May 25 13:04:00 nagiossrv check_nrpe: Remote [client IP] does not support Version 3 Packets
May 25 13:04:10 nagiossrv check_nrpe: Error: (nerrs = 0)(!log_opts) Could not complete SSL handshake with [client IP]: rc=0 SSL-error=5
At nsclient.log in the Windows Server i see this message:
2018-05-25 13:02:28: debug:c:\source\master\include\nrpe/server/protocol.hpp:92: Accepting connection from: [nagiosxi IP], count=1
2018-05-25 13:02:28: error:c:\source\master\include\socket/connection.hpp:276: Failed to establish secure connection: peer did not return a certificate: 199
How could i configure this scenario to use SSL certificates for this command?
I attached the nsclient.ini where i deleted the nagiosxi server IP in the "allowed hosts" key and the "password" key.
Thanks in advance.
"Operaciones"
I´m facing an issue with check_nrpe and nsclient++ and we want to enable SSL communication.
I installed NSCP 0.5.2.35 in a Windows Server 2008 R2 x64 SP1.
I upgraded check_nrpe to version 3.2.1 following this doc https://support.nagios.com/kb/article.php?id=520 and this https://support.nagios.com/kb/article.php?id=515
Later, i created the certificates and keys following this doc https://support.nagios.com/kb/article.php?id=519 and copied the client certs to the server running nsclient++.
In the Windows Server i edited the nsclient.ini file to reference the certs path and to allowed ssl communication.
I execute the check_nrpe command in the nagiosxi server referencing the server paths and including the -H and the client IP (i deleted the client IP):
[root@nagiossrv ssl]# /usr/local/nagios/libexec/check_nrpe -H [client IP] -C /usr/local/nagios/etc/ssl/nagios_server_certs/nagios_server.pem -K /usr/local/nagios/etc/ssl/nagios_server_certs/nagios_server.key -A /usr/local/nagios/etc/ssl/ca/ca_cert.pem
I (0.5.2.35 2018-01-28) seem to be doing fine...
[root@nagiossrv ssl]
But the /var/log/messages says:
May 25 13:04:00 nagiossrv check_nrpe: Remote [client IP] does not support Version 3 Packets
May 25 13:04:10 nagiossrv check_nrpe: Error: (nerrs = 0)(!log_opts) Could not complete SSL handshake with [client IP]: rc=0 SSL-error=5
At nsclient.log in the Windows Server i see this message:
2018-05-25 13:02:28: debug:c:\source\master\include\nrpe/server/protocol.hpp:92: Accepting connection from: [nagiosxi IP], count=1
2018-05-25 13:02:28: error:c:\source\master\include\socket/connection.hpp:276: Failed to establish secure connection: peer did not return a certificate: 199
How could i configure this scenario to use SSL certificates for this command?
I attached the nsclient.ini where i deleted the nagiosxi server IP in the "allowed hosts" key and the "password" key.
Thanks in advance.
"Operaciones"