diff --git a/apps/monitor/src/runner.rs b/apps/monitor/src/runner.rs index 59c98c1..e06032e 100644 --- a/apps/monitor/src/runner.rs +++ b/apps/monitor/src/runner.rs @@ -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) + ); } } } diff --git a/apps/web/src/views/detail.ejs b/apps/web/src/views/detail.ejs index c1b437a..9be95c9 100644 --- a/apps/web/src/views/detail.ejs +++ b/apps/web/src/views/detail.ejs @@ -721,10 +721,18 @@ const c = REGION_COLORS[pt.region] || '#6b7280'; const label = REGION_LABELS[pt.region] || pt.region; const status = pt.ping.up ? '' : ' DOWN'; - html += `