trim CN prefix from certificate name

This commit is contained in:
yggverse 2024-11-20 11:33:22 +02:00
parent 73b2b2569f
commit 7254f8e986

View File

@ -44,7 +44,7 @@ impl Gemini {
// Append record option
widget.form.list.append(
Some(identity.id),
&certificate.subject_name().unwrap(),
&certificate.subject_name().unwrap().replace("CN=", ""), // trim prefix
&format!(
"valid until {} | auth: {}",
certificate