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

Enable TLS 1.2 on all runtimes #2051

Merged
merged 1 commit into from
May 20, 2020
Merged

Enable TLS 1.2 on all runtimes #2051

merged 1 commit into from
May 20, 2020

Conversation

ob-stripe
Copy link
Contributor

r? @remi-stripe
cc @stripe/api-libraries

Enable TLS 1.2 on all runtimes, not just .NET Framework 4.5. It should already be enabled on other runtimes, but it doesn't hurt to enable it anyway, and we've gotten a few reports from users needing to enable support manually.

Also moved the code into a static constructor, since it only needs to be run once even if multiple clients are created.

(Hopefully) Fixes #2050.

Copy link
Contributor

@remi-stripe remi-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth leaving a comment to remember why we didn't just do it for 4.5. Feels like a refactor away from trying to optimize this (if someone other than you or myself looked at it)

@stripe-ci stripe-ci assigned ob-stripe and unassigned remi-stripe May 19, 2020
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

Successfully merging this pull request may close these issues.

An existing connection was forcibly closed by the remote host when making any API calls.
2 participants