Skip to content

Commit

Permalink
Fixed cert info display
Browse files Browse the repository at this point in the history
  • Loading branch information
ridercz committed Feb 4, 2017
1 parent 632b4c2 commit 8b5f6e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Altairis.AutoAcme.Manager/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@ public static void AddHost(
cleanupCallback: CleanupChallenge);
}

// Display certificate into
// Display certificate info
Trace.Indent();
Trace.WriteLine("Certificate information:");
Trace.WriteLine($"Issuer: {result.Certificate.Issuer}");
Trace.WriteLine($"Subject: {result.Certificate.Subject}");
Trace.WriteLine($"Serial number: {result.Certificate.SerialNumber}");
Trace.WriteLine($"Not before: {result.Certificate.NotBefore:o}");
Trace.WriteLine($"Not before: {result.Certificate.NotAfter:o}");
Trace.WriteLine($"Not after: {result.Certificate.NotAfter:o}");
Trace.WriteLine($"Thumbprint: {result.Certificate.Thumbprint}");
Trace.Unindent();

Expand Down Expand Up @@ -376,14 +376,14 @@ public static void Renew(
}
}
if (result != null) {
// Display certificate into
// Display certificate info
Trace.Indent();
Trace.WriteLine("Certificate information:");
Trace.WriteLine($"Issuer: {result.Certificate.Issuer}");
Trace.WriteLine($"Subject: {result.Certificate.Subject}");
Trace.WriteLine($"Serial number: {result.Certificate.SerialNumber}");
Trace.WriteLine($"Not before: {result.Certificate.NotBefore:o}");
Trace.WriteLine($"Not before: {result.Certificate.NotAfter:o}");
Trace.WriteLine($"Not after: {result.Certificate.NotAfter:o}");
Trace.WriteLine($"Thumbprint: {result.Certificate.Thumbprint}");
Trace.Unindent();

Expand Down

0 comments on commit 8b5f6e2

Please sign in to comment.