Closed luposky closed 3 years ago
this line solve the problem:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
not easy to find .. please update docs ...
similar is happening with android <= 4.4 and retrofit, okHttpClient Okhttp javax.net.ssl.sslexception: connection closed by peer
I get this exception on Windows 10 (net framework 4.5.2):
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Authentication failed because the remote party has closed the transport stream.
Any ideas ?