SwiftR icon indicating copy to clipboard operation
SwiftR copied to clipboard

Ignore SSL on SignalR

Open brunosenaa opened this issue 7 years ago • 3 comments

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

brunosenaa avatar Feb 20 '18 20:02 brunosenaa

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

udayasri avatar Mar 08 '18 09:03 udayasri

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?

CR34L avatar Apr 13 '18 12:04 CR34L

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

adamhartford avatar Apr 13 '18 12:04 adamhartford