Force by config to use tls 1.0 in a wcf client c# -
we have web app has client implemented wcf. client uses ssl_lvl3 make handshake external service. turns out service disabled ssl_lvl3, need change tls 1.0. there way force tls security in c#:
servicepointmanager.securityprotocol = securityprotocoltype.tls;
but changes security of services used app , not services accept tls.
what change web.config force wcf service use tls. there way this?
this binding of service:
<binding name="xxxx" closetimeout="00:01:00" opentimeout="00:01:00" receivetimeout="00:10:00" sendtimeout="00:01:00" allowcookies="false" bypassproxyonlocal="false" namecomparisonmode= "strongwildcard" maxbufferpoolsize="524288" maxbuffersize="655360" maxreceivedmessagesize="655360" textencoding="utf-8" transfermode="buffered" usedefaultwebproxy="true" messageencoding="text"> <security mode="transport" /> </binding>
<custombinding > <binding name="cussoap"> <sslstreamsecurity requireclientcertificate="true" sslprotocols="ssl3|tls|tls11|tls12" /> </binding>
but available in visual studio 2015(.net framework 4.5.2)
Comments
Post a Comment