|
|
@@ -32,36 +32,36 @@ restart_daemon();
|
|
|
is($?, STATE_OK, 'connect ssl') || diag @output;
|
|
|
like($output[0], qr/NRPE v.*/, 'connect ssl response') || diag @output;
|
|
|
|
|
|
-@output = `$checknrpe -H 127.0.0.1 -p 40321 --ca-cert-file=configs/certs/nrpe.crt`;
|
|
|
+@output = `$checknrpe -H 127.0.0.1 -p 40321 -A configs/certs/nrpe.crt`;
|
|
|
is($?, STATE_OK, 'connect ssl ca') || diag @output;
|
|
|
like($output[0], qr/NRPE v.*/, 'connect ssl ca response') || diag @output;
|
|
|
|
|
|
-@output = `$checknrpe -H 127.0.0.1 -p 40321 --ca-cert-file=configs/certs/nrpe.crt --client-cert=configs/certs/nrpe.crt --key-file=configs/certs/nrpe.key`;
|
|
|
+@output = `$checknrpe -H 127.0.0.1 -p 40321 -A configs/certs/nrpe.crt -C configs/certs/nrpe.crt -K configs/certs/nrpe.key`;
|
|
|
is($?, STATE_OK, 'connect ssl cert') || diag @output;
|
|
|
like($output[0], qr/NRPE v.*/, 'connect ssl cert response') || diag @output;
|
|
|
|
|
|
-@output = `$checknrpe -H 127.0.0.1 -p 40321 --ca-cert-file=configs/certs/other.crt`;
|
|
|
+@output = `$checknrpe -H 127.0.0.1 -p 40321 -A configs/certs/other.crt`;
|
|
|
is($?, STATE_UNKNOWN, 'connect ssl other ca') || diag @output;
|
|
|
like($output[0], qr/CHECK_NRPE: \(ssl_err != 5\) Error - Could not complete SSL handshake with/, 'connect ssl other ca response') || diag @output;
|
|
|
|
|
|
# --log-file=logs/check_nrpe_ssl.log --ssl-logging=255
|
|
|
# openssl: CHECK_NRPE: Error - Could not connect to .*
|
|
|
# libressl: CHECK_NRPE: Error sending query to host.
|
|
|
-@output = `$checknrpe -H 127.0.0.1 -p 40321 --ca-cert-file=configs/certs/nrpe.crt --client-cert=configs/certs/other.crt --key-file=configs/certs/other.key`;
|
|
|
+@output = `$checknrpe -H 127.0.0.1 -p 40321 -A configs/certs/nrpe.crt -C configs/certs/other.crt -K configs/certs/other.key`;
|
|
|
is($?, STATE_UNKNOWN, 'connect ssl other cert') || diag @output;
|
|
|
like($output[0], qr/CHECK_NRPE: Error /, 'connect ssl other cert response') || diag @output;
|
|
|
|
|
|
|
|
|
foreach ( @SSL_Versions_Bad ) {
|
|
|
my $ver = $_;
|
|
|
- @output = `$checknrpe -H 127.0.0.1 -p 40321 --ca-cert-file=configs/certs/nrpe.crt --ssl-version=$ver`;
|
|
|
+ @output = `$checknrpe -H 127.0.0.1 -p 40321 -A configs/certs/nrpe.crt -S $ver`;
|
|
|
is($?, STATE_UNKNOWN, "connect ssl $ver") || diag @output;
|
|
|
like($output[0], qr/CHECK_NRPE: \(ssl_err != 5\) Error - Could not complete SSL handshake with/, "connect ssl $ver response") || diag @output;
|
|
|
}
|
|
|
|
|
|
foreach ( @SSL_Versions_Good ) {
|
|
|
my $ver = $_;
|
|
|
- @output = `$checknrpe -H 127.0.0.1 -p 40321 --ca-cert-file=configs/certs/nrpe.crt --ssl-version=$ver`;
|
|
|
+ @output = `$checknrpe -H 127.0.0.1 -p 40321 -A configs/certs/nrpe.crt -S $ver`;
|
|
|
is($?, STATE_OK, "connect ssl $ver") || diag @output;
|
|
|
like($output[0], qr/NRPE v.*/, "connect ssl $ver response") || diag @output;
|
|
|
}
|