+ Fix empty message for x509
This commit is contained in:
parent
79436afc8d
commit
147b819856
|
@ -87,21 +87,21 @@ sub run {
|
|||
$self->{option_results}->{servername} ? ( SSL_hostname => $self->{option_results}->{servername} ):(),
|
||||
) };
|
||||
if ($@) {
|
||||
$self->{output}->output_add(severity => 'CRITICAL',
|
||||
short_msg => sprintf ("%s", $!));
|
||||
$self->{output}->output_add(severity => 'CRITICAL',
|
||||
short_msg => sprintf("%s", $@));
|
||||
|
||||
$self->{output}->display();
|
||||
$self->{output}->exit()
|
||||
$self->{output}->display();
|
||||
$self->{output}->exit()
|
||||
}
|
||||
|
||||
#Retrieve Certificat
|
||||
eval { $cert = $client->peer_certificate() };
|
||||
if ($@) {
|
||||
$self->{output}->output_add(severity => 'CRITICAL',
|
||||
short_msg => sprintf("%s", $!));
|
||||
$self->{output}->output_add(severity => 'CRITICAL',
|
||||
short_msg => sprintf("%s", $@));
|
||||
|
||||
$self->{output}->display();
|
||||
$self->{output}->exit()
|
||||
$self->{output}->display();
|
||||
$self->{output}->exit()
|
||||
}
|
||||
|
||||
#Expiration Date
|
||||
|
|
Loading…
Reference in New Issue