|
@@ -32,6 +32,7 @@ using System.Net.Security;
|
|
|
using System.Security.Cryptography.X509Certificates;
|
|
|
using EVCB_OCPP.WSServer.Service;
|
|
|
using EVCB_OCPP.Packet.Messages.SmartCharging;
|
|
|
+using System.Security.Authentication;
|
|
|
|
|
|
namespace EVCB_OCPP.WSServer
|
|
|
{
|
|
@@ -298,7 +299,8 @@ namespace EVCB_OCPP.WSServer
|
|
|
//System.Net.IPAddress.Any.ToString()
|
|
|
// llistener.Add(new ListenerConfig { Ip = "", Port = Convert.ToInt32(wssserverPort), Backlog = 100, Security = serverSecurity });
|
|
|
llistener.Add(new ListenerConfig { Ip = System.Net.IPAddress.Any.ToString(), Port = Convert.ToInt32(GlobalConfig.GetWS_Port()), Backlog = 100, Security = "None" });
|
|
|
- llistener.Add(new ListenerConfig { Ip = System.Net.IPAddress.Any.ToString(), Port = Convert.ToInt32(GlobalConfig.GetWSS_Port()), Backlog = 100, Security = "tls" });
|
|
|
+ llistener.Add(new ListenerConfig { Ip = System.Net.IPAddress.Any.ToString(), Port = Convert.ToInt32(GlobalConfig.GetWSS_Port()), Backlog = 100, Security = SslProtocols.Tls12.ToString() });
|
|
|
+ // llistener.Add(new ListenerConfig { Ip = System.Net.IPAddress.Any.ToString(), Port = Convert.ToInt32(GlobalConfig.GetWSS_Port()), Backlog = 100, Security = SslProtocols.Tls11.ToString() });
|
|
|
var config = ConfigurationManager.GetSection("superSocket") as IConfigurationSource;
|
|
|
ICertificateConfig Certificate = config.Servers.ElementAt(0).Certificate;
|
|
|
IEnumerable<IListenerConfig> listeners = llistener;
|