1
votes

I've developed my website using .NET 4.5. I've used authorize.net for payments. Recently I got a mail from Authorize.net that they have disabled support for TLS 1.0 and 1.1 and require TLS 1.2. I've no idea about TLS and how to upgrade it. Please tell me the procedure to upgrade to TLS 1.2 which will also be supported on azure as well.

2
You mean 4.5.2. TLS 1.2 was added in .NET 4.5.2. Just change your target framework version to a new one, eg 4.6 or later. Have you tried changing the target version? Did you encounter any problems?Panagiotis Kanavos
BTW the earliest supported .NET version is 4.5.2.Panagiotis Kanavos

2 Answers

1
votes

You just use below code to resolve this problem:

 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls
                                   | SecurityProtocolType.Tls11
                                   | SecurityProtocolType.Tls12; 
1
votes

We just went through this with Paypal and our .Net stuff. We run on .NET 4.6, so TLS 1.2 was set by default. In .NET 4.5, TLS 1.2 is supported, but not enabled by default. you will need to set the SecurityProtocalType(MSDN Docs) to Tls12 in your applications.

Judging from Authorize.net's changelog, it woud appear that they have disabled TLS 1.0 & 1.1 in their "sandbox" environment. Therefore, you can use that sandbox to test your code in, to make sure that it works.