Click here to Skip to main content
15,849,829 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All

I have a website which uses a web service . Before the webservice was able to connect through ssl but now it has changed and now i need to force it to use TLS.

Can anyone help me out in this.
Do i need to do anything in the code or it's networking thing.

Many Thanks

suman
Posted

1 solution

Just Change

ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;

to

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900