Please any one help me on below error:-
The request was aborted: Could not create SSL/TLS secure channel.
Same was working fine using postman with tls and tls1.3 version. but when i try it through ASP.NET 4.8 application. it does not work and gives above error.
In this application, i am using .p12 certificate for using third party api which work on tls & tls1.3 version.
when we use tls1.3 than it gives below error:-
The client and server cannot communicate, because they do not possess a common algorithm
What I have tried:
ServicePointManager.Expect100Continue = false;
ServicePointManager.DefaultConnectionLimit = 9999;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls13;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl;
ServicePointManager.ServerCertificateValidationCallback = (snder, cert, chain, error) => true;