Skip to content

Commit

Permalink
Always prompt at end of program unless renew.
Browse files Browse the repository at this point in the history
Store certs in "WebHosting" instead of personal.
  • Loading branch information
Bryan-Legend committed Dec 1, 2015
1 parent 74a4a2a commit 83702a8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions letsencrypt-win-simple/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,8 @@ static void Main(string[] args)
Console.ResetColor();
}

#if DEBUG
Console.WriteLine("Press enter to continue.");
Console.ReadLine();
#endif
}

static string CleanFileName(string fileName) => Path.GetInvalidFileNameChars().Aggregate(fileName, (current, c) => current.Replace(c.ToString(), string.Empty));
Expand Down Expand Up @@ -254,7 +252,6 @@ public static void Auto(Target binding)
Console.WriteLine($"\nDo you want to automatically renew this certificate in 60 days? This will add a task scheduler task. (Y/N) ");
if (!PromptYesNo())
return;

}

if (!Options.Renew)
Expand All @@ -264,8 +261,8 @@ public static void Auto(Target binding)

public static void InstallCertificate(Target binding, string pfxFilename, out X509Store store, out X509Certificate2 certificate)
{
Console.WriteLine($" Opening Certificate Store");
store = new X509Store(StoreName.My, StoreLocation.LocalMachine);
Console.WriteLine($" Opening Certificate Store \"WebHosting\"");
store = new X509Store("WebHosting", StoreLocation.LocalMachine);
store.Open(OpenFlags.OpenExistingOnly | OpenFlags.ReadWrite);

Console.WriteLine($" Loading .pfx");
Expand Down

0 comments on commit 83702a8

Please sign in to comment.