Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Set TLS version to 1.2 before making SOAP calls #51

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bhaarathms
Copy link
Contributor

Sandbox and PROD environments only accept TLS 1.2
So we are explicitly setting TLS version to 1.2 before making SOAP calls.

Copy link
Member

@srpraveenkumar srpraveenkumar left a comment

Choose a reason for hiding this comment

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

Looks good Bhaarath. Could you also set this in other samples in the same solution if possible?

@bhaarathms
Copy link
Contributor Author

bhaarathms commented Nov 22, 2017

@srpraveenkumar added this statement in other samples too.

@JohnLBevan
Copy link

FYI: So long as the TLS protocol isn't hardcoded, you can set it via the registry, or in the AppContext.
See https://docs.microsoft.com/en-us/dotnet/framework/network-programming/tls for MS Guidelines, and https://stackoverflow.com/questions/28286086/default-securityprotocol-in-net-4-5 for various alternate approaches / discussions. Taking one of these approaches will help to take advantage of TLS1.3 once released / ensure your system' reasonably future proof.

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

Successfully merging this pull request may close these issues.

3 participants