private static void WriteCertificatesInfo(string inputPath, TextWriter output) { var certsInfo = TemplatePackage.GetCertsInfo(inputPath); output.WriteLine(); output.WriteCommandText($"Found {certsInfo.Count} certificates in the package."); foreach (var info in certsInfo) { output.WriteLine(); output.WriteCommandText($" Cert Subject: {info.cert.Subject}"); output.WriteLine(); output.WriteCommandText($" Cert Issuer: {info.cert.IssuerName.Name}"); output.WriteLine(); output.WriteCommandText($" Cert Serial Number: {info.cert.SerialNumber}"); output.WriteLine(); output.WriteCommandText($" Cert Chain Status: {info.status.ToString()}"); output.WriteLine(); output.WriteCommandText($" Cert PubKey:"); output.WriteCommandText($" {info.cert.GetPublicKeyString()}"); output.WriteLine(); output.WriteCommandText($" Cert Pin:"); output.WriteCommandText($" {info.pin}"); output.WriteLine(); output.WriteCommandText("--"); } }