[Modify] Replace it
This commit is contained in:
parent
8614e44afd
commit
e856a2f194
@ -102,16 +102,8 @@ namespace WebSocketSharp.Net
|
|||||||
throw new ArgumentException ("No server certificate could be found.");
|
throw new ArgumentException ("No server certificate could be found.");
|
||||||
|
|
||||||
_secure = true;
|
_secure = true;
|
||||||
_sslConfig =
|
_sslConfig = new ServerSslConfiguration (sslConfig);
|
||||||
new ServerSslConfiguration (
|
_sslConfig.ServerCertificate = cert;
|
||||||
cert,
|
|
||||||
sslConfig.ClientCertificateRequired,
|
|
||||||
sslConfig.EnabledSslProtocols,
|
|
||||||
sslConfig.CheckCertificateRevocation
|
|
||||||
);
|
|
||||||
|
|
||||||
_sslConfig.ClientCertificateValidationCallback =
|
|
||||||
sslConfig.ClientCertificateValidationCallback;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_endpoint = endpoint;
|
_endpoint = endpoint;
|
||||||
|
Loading…
Reference in New Issue
Block a user