internal void ExportCerts(IEnumerable <X509Certificate2> certs, TextWriter writer, bool isOutputFile) { foreach (X509Certificate2 cert in certs) { DnsX509Cert dnsCert = new DnsX509Cert(cert); dnsCert.Export(writer, dnsCert.Name); writer.WriteLine(); if (isOutputFile) { WriteLine(dnsCert.Name); } } }
internal void ExportCerts(IEnumerable <Certificate> certs, TextWriter writer, bool isOutputFile) { foreach (Certificate cert in certs) { DnsX509Cert dnsCert = new DnsX509Cert(cert.Data); dnsCert.Export(writer, cert.Owner); writer.WriteLine(); if (isOutputFile) { WriteLine("{0}, {1}, {2}, {3}", cert.Owner, dnsCert.Name, cert.ValidStartDate, cert.ValidEndDate); } } }