feat: email

This commit is contained in:
2021-05-05 15:01:15 +08:00
parent 234640f263
commit 00d5dc9d09
2 changed files with 41 additions and 11 deletions

View File

@@ -150,11 +150,14 @@ impl CertConfigItem {
}
cert_dns_names.push(x509_certificate.common_name.to_lowercase());
self.dns_names.as_ref().map(|dns_names| dns_names.iter().map(|n| n.to_lowercase()).map(|n| {
if !self_dns_names.contains(&n) {
self_dns_names.push(n);
if let Some(dns_names) = &self.dns_names {
for n in dns_names {
let n = n.to_lowercase();
if !self_dns_names.contains(&n) {
self_dns_names.push(n);
}
}
}));
}
for n in &x509_certificate.alt_names {
let n = n.to_lowercase();
if !cert_dns_names.contains(&n) {