This commit is contained in:
2026-04-10 09:59:35 +04:00
parent aa405aedef
commit 2083326418
2 changed files with 19 additions and 5 deletions
+7 -1
View File
@@ -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)
);
}
}
}