mickem / nscp

NSClient++
http://nsclient.org
GNU General Public License v2.0
239 stars 94 forks source link

Failed to establish secure connection: peer did not return a certificate: 199 #675

Open Pablo1816 opened 4 years ago

Pablo1816 commented 4 years ago

I have NSCP 0.5.2.39 (NSclient) windows 10 installed, On ubuntu 18 Nagios 4.4.2 NRPE 3.2.1, running ./check_nrpe -h client ip with result from server "CHECK_NRPE: (ssl_err! = 5) Error - Could not complete SSL handshake with "and client "error: c: \ source \ 0.5.1 \ include \ socket / connection.hpp: 276: Failed to establish secure connection: sslv3 alert handshake failure: 1040 ", error corrected by generating a 2048 DH key on the client side with the following command openssl dhparam -C 2048 and adding the following line in the configuration file NSclient.ini ; DH KEY - dh = $ {certificate-path} /nrpe_dh_2048.pem which refers to the key generated with the above command, but now I have new error from server side: CHECK_NRPE: Error - Could not connect to 192.168.0.25. Check system logs on 192.168.0.25 and if we look at the log in the client, the following line appears for each attempt: 2020-03-26 07:37:49: error: c: \ source \ master \ include \ socket / connection.hpp: 276: Failed to establish secure connection: peer did not return a certificate: 199

Any suggestion

Maverick87Shaka commented 2 years ago

Any solution for that? I'm facing the same issue. check_nrpe version 4.0.0 on Ubuntu 20.04 server