VPSocketIO icon indicating copy to clipboard operation
VPSocketIO copied to clipboard

CFNetwork SSLHandshake failed

Open MaxIsComing opened this issue 7 years ago • 1 comments

CFNetwork SSLHandshake failed (-9806) TCP Conn 0x600000165040 SSLHandshake failed (-9806) SocketStream write error [0x600000165040]: 3 -9806 ClientSocket MESSAGE: Flushing probe wait

MaxIsComing avatar Jan 31 '18 05:01 MaxIsComing

@MaxIsComing do you use http (ws) or https(wss) ?

if you use http(ws) you should add your host to exceptions in plist file. for example:

<key>NSAppTransportSecurity</key>
<dict>
  <key>NSExceptionDomains</key>
  <dict>
    <key>yourserver.com</key>
    <dict>
      <!--Include to allow subdomains-->
      <key>NSIncludesSubdomains</key>
      <true/>
      <!--Include to allow insecure HTTP requests-->
      <key>NSExceptionAllowsInsecureHTTPLoads</key>
      <true/>
      <!--Include to specify minimum TLS version-->
      <key>NSExceptionMinimumTLSVersion</key>
      <string>TLSv1.1</string>
    </dict>
  </dict>
</dict>

vasily-popov avatar Jan 31 '18 09:01 vasily-popov