Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

TLS support mutliple protocols

$
0
0

I see this code works in asp 4.0

System.Net.ServicePointManager.SecurityProtocol =
System.Net.SecurityProtocolType.Ssl3
| System.Net.SecurityProtocolType.Tls12
| SecurityProtocolType.Tls11
| SecurityProtocolType.Tls;

ref: https://docs.microsoft.com/en-us/dotnet/api/system.security.authentication.sslprotocols?redirectedfrom=MSDN&view=netframework-4.7.2

QUESTION: Would this work in asp 2.0 ?? Is the 'or' ok or is there a better way?

System.Net.ServicePointManager.SecurityProtocol = DirectCast(3072, System.Net.SecurityProtocolType) Or DirectCast(768, System.Net.SecurityProtocolType) Or DirectCast(192, System.Net.SecurityProtocolType) Or DirectCast(48, System.Net.SecurityProtocolType)

I use HTTPSWebRequest to get data via RESP API, and now different providers have different TLS for different URLS.  So I need to allow all different type protocols to allow all of them to work. I have no idea how to allow different URLs to use different TLS protocols on request in asp 2.0 .

NOTE: My asp net 2.0 application is massive and I have not got the time to upgrade.


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>