Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL Exception #42

Closed
luposky opened this issue Dec 30, 2016 · 2 comments
Closed

SSL Exception #42

luposky opened this issue Dec 30, 2016 · 2 comments

Comments

@luposky
Copy link

luposky commented Dec 30, 2016

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 ?

@luposky
Copy link
Author

luposky commented Dec 30, 2016

this line solve the problem:

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;

not easy to find .. please update docs ...

@omprakashsrv
Copy link

similar is happening with android <= 4.4 and retrofit, okHttpClient
Okhttp javax.net.ssl.sslexception: connection closed by peer

square/okhttp#2372

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants