The request was aborted: Could not create SSL/TLS secure channel
hi everyone,
we have program written java provide web api https, , have client written c# call web api following code:
servicepointmanager.servercertificatevalidationcallback = delegate { return true; }; using (var webclient = new webclient()) { //webclient.usedefaultcredentials = true; webclient.encoding = encoding.utf8; webclient.uploadstring("https://corpserver:58583/api/login", "post", json); }
it works fine, microsoft releases may 2015 .net security updates, our client can't call web api anymore, error message is: the request aborted: not create ssl/tls secure channel, status code is: securechannelfailure(internalstatus = requestfatal).
any ideas?
best regards
hi,
there 3 options fix issue:
- ask user uninstall kb3061518
- add clientminkeybitlength 0x00000200(512) value under hkey_local_machine\system\currentcontrolset\control\securityproviders\schannel\keyexchangealgorithms\diffie-hellman. allow windows not block dhe 512 bits.
- update java 8 use dhe 1024 bits default. see jdk 8 use tls 1.2 default
Visual Studio Languages , .NET Framework > Visual C#
Comments
Post a Comment