|
|
@@ -211,6 +211,9 @@ int np_net_ssl_check_cert(int days_till_exp_warn, int days_till_exp_crit){
|
|
|
int time_remaining;
|
|
|
time_t tm_t;
|
|
|
|
|
|
+ // Prefix whatever we're about to print with SSL
|
|
|
+ printf("SSL ");
|
|
|
+
|
|
|
certificate=SSL_get_peer_certificate(s);
|
|
|
if (!certificate) {
|
|
|
printf("%s\n",_("CRITICAL - Cannot retrieve server certificate."));
|
|
|
@@ -301,7 +304,7 @@ int np_net_ssl_check_cert(int days_till_exp_warn, int days_till_exp_crit){
|
|
|
else
|
|
|
status = STATE_CRITICAL;
|
|
|
} else {
|
|
|
- printf(_("OK - Certificate '%s' will expire on %s.\n"), cn, timestamp);
|
|
|
+ printf(_("OK - Certificate '%s' will expire on %s. "), cn, timestamp);
|
|
|
status = STATE_OK;
|
|
|
}
|
|
|
X509_free(certificate);
|