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

Ignore SSL on SignalR #107

Open
brunosenaa opened this issue Feb 20, 2018 · 3 comments
Open

Ignore SSL on SignalR #107

brunosenaa opened this issue Feb 20, 2018 · 3 comments

Comments

@brunosenaa
Copy link

When I implement server without https everything works fine.

But, when I try to connect with a server through https IOS shows error -1202 (Error during negotiation).

At Android I've bypassed ssl and everything works, but in IOS I do not found anything at SignalR class to access NSURLConnection and bypass this scenario.

Could you please help me ?

Thanks

@udayasri
Copy link

udayasri commented Mar 8, 2018

Hi I had the same issue very recently, because UIWebView / UKWebview wasn't able to do the self signing with SSL certificates or the SSL certificates were not trusted. the workaround was add the exception domains in the info.plist under NSAppTransportSecurity :

Check these link https://cocoacasts.com/how-to-add-app-transport-security-exception-domains
https://stackoverflow.com/questions/31254725/transport-security-has-blocked-a-cleartext-http

@CR34L
Copy link

CR34L commented Apr 13, 2018

Same here. Unable to make connections to selfsigned SSL cert servers. NSAppTransportSecurity is not an option any more.

NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
HTTP load failed (error code: -1202 [3:-9813])

Any known workarounds?

@adamhartford
Copy link
Owner

adamhartford commented Apr 13, 2018

You could install your own root certificate and trust it via Settings > General > About > Certificate Trust Settings.

https://developer.apple.com/library/content/qa/qa1948/_index.html

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

4 participants