Issue:
By default, .net application built on framework 4.0 will use SSL3.0 or TLS1.0 as default protocol.
Ask:
If we need to force it to use TLS1.2 protocol, review below workarounds.
Workaround 1:
Use below link just before Https call is attempted.
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
Workaround 2:
Migrate the existing application to supported framework 4.6.2. After migrating client app will be default use the TLS1.2 protocol.
However, I observed that it works well for console app but not for ASMX web service migration.
Please review below steps to get web service use TLS 1.2 by default to make outbound calls.
https://technet.microsoft.com/en-us/library/mt791311(v=office.16).aspx
Set the registry key “SchUseStrongCrypto” to 1. Which will force .net application to avoid using SSL3.0 or TLS1.0 and it will always use TLS1.2
I hope this helps!
Thanks
Saurabh Somani