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 (-9801) errors #66

Closed
jsoendermann opened this issue May 24, 2016 · 9 comments
Closed

CFNetwork SSLHandshake failed (-9801) errors #66

jsoendermann opened this issue May 24, 2016 · 9 comments

Comments

@jsoendermann
Copy link

Hi,

when I try to use Siren in my app, I get SSL errors on startup:

CFNetwork SSLHandshake failed (-9801)
CFNetwork SSLHandshake failed (-9801)
CFNetwork SSLHandshake failed (-9801)
CFNetwork SSLHandshake failed (-9801)
NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9801)

Do I have to add a URL to my App Transport Security exceptions for Siren to work?

@ArtSabintsev
Copy link
Owner

Hmm, I've never had to do that. What's your ATS settings look like?

@ArtSabintsev
Copy link
Owner

and yes, that will probably fix the problem.

@jsoendermann
Copy link
Author

    <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSExceptionDomains</key>
        <dict>
            <key>localhost</key>
            <dict>
                <key>NSAllowsArbitraryLoads</key>
                <true/>
                <key>NSExceptionAllowsInsecureHTTPLoads</key>
                <true/>
                <key>NSIncludesSubdomains</key>
                <true/>
            </dict>
        </dict>
    </dict>

Which Domain would I have to add to make it work?

@ArtSabintsev
Copy link
Owner

Hmm, you should be fine with those settings. I'm surprised it didn't work. I'll have to get back to you on that.

@jsoendermann
Copy link
Author

Thanks!

@getaaron
Copy link
Contributor

I can't reproduce this. Are you using something like Charles or Wireshark?

@ArtSabintsev
Copy link
Owner

ArtSabintsev commented May 25, 2016

Closing the issue as it's not reproducible on our end.

@ArtSabintsev
Copy link
Owner

Re-opening for feedback, but there's not much we can do on our end.

@ArtSabintsev ArtSabintsev reopened this May 25, 2016
@ArtSabintsev
Copy link
Owner

As there's been no feedback in about a week, I'm closing this issue.

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

3 participants