Skip to content

Commit

Permalink
Update TLS version used for SSL connections. TLS 1.0 and 1.1 are out …
Browse files Browse the repository at this point in the history
…of date now.
  • Loading branch information
keyoti committed May 13, 2021
1 parent a50f7ca commit 0baa63b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public static Stream ProcessSSL(this Stream clientStream, X509Certificate cert)
try
{
SslStream sslStream = new SslStream(clientStream);
sslStream.AuthenticateAsServer(cert, false, SslProtocols.Tls, true);
sslStream.AuthenticateAsServer(cert, false, SslProtocols.Tls12, true);
sslStream.ReadTimeout = 10000;
sslStream.WriteTimeout = 10000;
return sslStream;
Expand Down

0 comments on commit 0baa63b

Please sign in to comment.