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

Generic errors and TLS1.2 #76

Open
wilsonmfg opened this issue Nov 17, 2020 · 0 comments
Open

Generic errors and TLS1.2 #76

wilsonmfg opened this issue Nov 17, 2020 · 0 comments

Comments

@wilsonmfg
Copy link

Took me far to long to realize that the host I was connecting to (which I don't control and they don't announce changes) had upgraded to require TLS1.2+. The errors from the library were not helpful in discovering this.

The fix is one line of code, add this anywhere before you initialize your client, it only needs to be run once.

System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;

Saves having to port to some other library when the way I'm using this one still works just fine!

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

1 participant