fix
This commit is contained in:
@@ -347,7 +347,13 @@ async fn run_check_async(
|
||||
.unwrap()
|
||||
.as_secs() as i64;
|
||||
cert_expiry_days = Some((not_after - now) / 86400);
|
||||
cert_issuer = Some(cert.issuer().to_string());
|
||||
let issuer_str = cert.issuer().to_string();
|
||||
cert_issuer = Some(
|
||||
issuer_str.split(", ")
|
||||
.find(|p| p.starts_with("O="))
|
||||
.map(|p| p[2..].to_string())
|
||||
.unwrap_or(issuer_str)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user