react-native-audio-streaming icon indicating copy to clipboard operation
react-native-audio-streaming copied to clipboard

CFNetwork SSLHandshake failed (-9824)

Open mxmtsk opened this issue 9 years ago • 1 comments

Hello,

I keep getting the error CFNetwork SSLHandshake failed (-9824) in the Xcode console. I have googled already and my Info.plist looks like this:

  <dict>
      <key>NSAllowsArbitraryLoads</key>
      <true/>
      <key>NSExceptionDomains</key>
      <dict>
          <key>my_domain.com</key>
          <dict>
              <key>NSIncludesSubdomains</key>
              <true/>
              <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
              <true/>
              <key>NSTemporaryExceptionMinimumTLSVersion</key>
              <string>TLSv1.0</string>
              <key>NSTemporaryExceptionRequiresForwardSecrecy</key>
              <false/>
          </dict>
          <key>localhost</key>
          <dict>
            <key>NSExceptionAllowsInsecureHTTPLoads</key>
            <true/>
          </dict>
      </dict>
  </dict>

But that didn't help. Has anyone experienced this also and found a solution?

mxmtsk avatar Jan 25 '17 20:01 mxmtsk

Did you ever figure this out? I'm noticing this particularly on some HTTPS URLs, it almost seems like it's some sort of SSL error, though I can't figure out how to bypass it. Nothing in the info.plist helps. HTTP URLs work fine. I may just rewrite the URLs to use HTTP in the interim. The URLs in my case are arbitrary, I don't have control over the servers hosting the media files.

tmaly1980 avatar Nov 19 '17 08:11 tmaly1980