Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions websocket-sharp/WebSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2136,12 +2136,16 @@ private void setClientStream ()
false,
conf.ServerCertificateValidationCallback,
conf.ClientCertificateSelectionCallback);

sslStream.AuthenticateAsClient (
host,
conf.ClientCertificates,
conf.EnabledSslProtocols,
conf.CheckCertificateRevocation);

// The connection couldn't be established if the certificates are empty
if (conf.ClientCertificates != null)
sslStream.AuthenticateAsClient(
host,
conf.ClientCertificates,
conf.EnabledSslProtocols,
conf.CheckCertificateRevocation);
else
sslStream.AuthenticateAsClient(host);

_stream = sslStream;
}
Expand Down