[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.");
|
throw new ArgumentException ("No server certificate could be found.");
|
||||||
|
|
||||||
_secure = secure;
|
_secure = secure;
|
||||||
_sslConfig = sslConfig;
|
_sslConfig =
|
||||||
_sslConfig.ServerCertificate = cert;
|
new ServerSslConfiguration (
|
||||||
|
cert,
|
||||||
|
sslConfig.ClientCertificateRequired,
|
||||||
|
sslConfig.EnabledSslProtocols,
|
||||||
|
sslConfig.CheckCertificateRevocation
|
||||||
|
);
|
||||||
|
|
||||||
|
_sslConfig.ClientCertificateValidationCallback =
|
||||||
|
sslConfig.ClientCertificateValidationCallback;
|
||||||
}
|
}
|
||||||
|
|
||||||
_endpoint = endpoint;
|
_endpoint = endpoint;
|
||||||
|
Loading…
Reference in New Issue
Block a user