Skip to content

Commit

Permalink
Merge pull request win-acme#224 from SH-Solutions/master
Browse files Browse the repository at this point in the history
Fix subjectName index and CN prefix in UninstallCertificate
  • Loading branch information
rkerber committed May 20, 2016
2 parents 9ebdd04 + 5da3709 commit 9c9c12e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion letsencrypt-win-simple/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ public static void UninstallCertificate(string host, out X509Store store, X509Ce
{
var subjectName = cert.Subject.Split(',');

if (cert.FriendlyName != certificate.FriendlyName && subjectName[1] == " CN=" + host)
if (cert.FriendlyName != certificate.FriendlyName && subjectName[0] == "CN=" + host)
{
Console.WriteLine($" Removing Certificate from Store {cert.FriendlyName}");
Log.Information("Removing Certificate from Store {@cert}", cert);
Expand Down

0 comments on commit 9c9c12e

Please sign in to comment.