Generic errors and TLS1.2
wilsonmfg opened this issue · 0 comments
wilsonmfg commented
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!