Skip to content

Generic errors and TLS1.2 #76

Description

@wilsonmfg

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions