Make it so you can use any name for a cert file and not just a default one.

This commit is contained in:
hondacrx
2023-09-16 14:42:16 -04:00
parent f636ea225f
commit 0287a481ee
2 changed files with 9 additions and 1 deletions
@@ -80,7 +80,7 @@ namespace BNetServer
input.Label = "Log In";
formInputs.Inputs.Add(input);
certificate = new X509Certificate2("BNetServer.pfx");
certificate = new X509Certificate2(ConfigMgr.GetDefaultValue("CertificatesFile", "./BNetServer.pfx"));
Assembly currentAsm = Assembly.GetExecutingAssembly();
foreach (var type in currentAsm.GetTypes())