My question is simple, I have read these two main pages :
But from the first link, it's showing configuration for SecurityProtocol set in global.asax.cs for solving
"System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel."
Here, I want this config is set in web.config / app.config, just for making it a little specific for own project not for all asp.net projects... Then I think the second link {msdn.microsoft.com.....} is the way, but the SSL/TLS error is still there... So my question how to implement following through web.config?
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls
| SecurityProtocolType.Tls11
| SecurityProtocolType.Tls12
| SecurityProtocolType.Ssl3;
I have read this page too Force by config to use tls 1.0 in a wcf client c#, but there are no answers.
and then... I just found these pages :
- https://msdn.microsoft.com/en-us/library/ms731328(v=vs.110).aspx
- https://msdn.microsoft.com/en-us/library/ms731377(v=vs.100).aspx
then I implement my custom binding like this :
<customBinding >
<binding name="SureTaxSoap">
<sslStreamSecurity requireClientCertificate="true" sslProtocols="Ssl3|Tls|Tls11|Tls12" >
</sslStreamSecurity>
</binding>
</customBinding>
but sslProtocols="Ssl3|Tls|Tls11|Tls12" is unidentified