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
+8
View File
@@ -39,6 +39,14 @@ LoginREST.TicketDuration=3600
BindIP = "0.0.0.0"
#
# CertificatesFile
# Description: Certificates file.
# Example: "/etc/ssl/certs/BNetServer.pfx"
# Default: "./BNetServer.pfx"
CertificatesFile = "./BNetServer.pfx"
#
# RealmsStateUpdateDelay
# Description: Time (in seconds) between realm list updates.
@@ -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())