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