Make it so you can use any name for a cert file and not just a default one.
This commit is contained in:
@@ -39,6 +39,14 @@ LoginREST.TicketDuration=3600
|
|||||||
|
|
||||||
BindIP = "0.0.0.0"
|
BindIP = "0.0.0.0"
|
||||||
|
|
||||||
|
#
|
||||||
|
# CertificatesFile
|
||||||
|
# Description: Certificates file.
|
||||||
|
# Example: "/etc/ssl/certs/BNetServer.pfx"
|
||||||
|
# Default: "./BNetServer.pfx"
|
||||||
|
|
||||||
|
CertificatesFile = "./BNetServer.pfx"
|
||||||
|
|
||||||
#
|
#
|
||||||
# RealmsStateUpdateDelay
|
# RealmsStateUpdateDelay
|
||||||
# Description: Time (in seconds) between realm list updates.
|
# Description: Time (in seconds) between realm list updates.
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ namespace BNetServer
|
|||||||
input.Label = "Log In";
|
input.Label = "Log In";
|
||||||
formInputs.Inputs.Add(input);
|
formInputs.Inputs.Add(input);
|
||||||
|
|
||||||
certificate = new X509Certificate2("BNetServer.pfx");
|
certificate = new X509Certificate2(ConfigMgr.GetDefaultValue("CertificatesFile", "./BNetServer.pfx"));
|
||||||
|
|
||||||
Assembly currentAsm = Assembly.GetExecutingAssembly();
|
Assembly currentAsm = Assembly.GetExecutingAssembly();
|
||||||
foreach (var type in currentAsm.GetTypes())
|
foreach (var type in currentAsm.GetTypes())
|
||||||
|
|||||||
Reference in New Issue
Block a user