Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CFNetwork SSLHandshake failed #4

Open
MaxIsComing opened this issue Jan 31, 2018 · 1 comment
Open

CFNetwork SSLHandshake failed #4

MaxIsComing opened this issue Jan 31, 2018 · 1 comment

Comments

@MaxIsComing
Copy link

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

@vasily-popov
Copy link
Owner

@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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants