GithubHelp home page GithubHelp logo

An SSL error has occurred and a secure connection to the server cannot be made. error is seen in iOS 10 devices. about gtm-http-fetcher HOT 11 CLOSED

google avatar google commented on May 14, 2024
An SSL error has occurred and a secure connection to the server cannot be made. error is seen in iOS 10 devices.

from gtm-http-fetcher.

Comments (11)

thomasvl avatar thomasvl commented on May 14, 2024

Nothing immediately jumps to mind. Aside: depending on what your min version supported is, you might want to switch to https://github.com/google/gtm-session-fetcher (but that likely will be some more work then you want at the moment).

Apple has been cranking up the SSL requirements, so it could be that using the iOS 10 sdk is requiring you have more explicit info.plist keys also to go with things. So you might want to revisit Apple's release notes/docs about things like NSAppTransportSecurity.

from gtm-http-fetcher.

mnang avatar mnang commented on May 14, 2024

I'm using new Xcode version 8.0 and the deployment target was set to 8.0 by default. I've changed to 6.0. Is that you mean by min version?
here is my ATS settings:

NSAppTransportSecurity

NSAllowsArbitraryLoads

NSExceptionDomains
hostname

NSIncludesSubdomains
rue/>
NSTemporaryExceptionAllowsInsecureHTTPLoads

NSExceptionRequiresForwardSecrecy



let me know if this is correct.

from gtm-http-fetcher.

mwyman avatar mwyman commented on May 14, 2024

Apple really discourages TLS < v1.2. If you can't update your server, you may need to add ATS keys such as NSExceptionMinimumTLSVersion (see: https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html)

from gtm-http-fetcher.

mnang avatar mnang commented on May 14, 2024

Thanks for the reply, but i've added the ATS to plist.
Please see the details below:

screen shot 2016-09-27 at 6 38 43 pm

Do i need to add any other details?

from gtm-http-fetcher.

thomasvl avatar thomasvl commented on May 14, 2024

You mentioned TLS1.0 in the initial comment, but 1.1 in your last comment. If you are 1.0, then the 1.1 value likely isn't enough, right?

from gtm-http-fetcher.

mnang avatar mnang commented on May 14, 2024

I've added as 1.0, but still getting the same error:

NSErrorClientCertificateStateKey=0}, error Code -1200, error message An SSL error has occurred and a secure connection to the server cannot be made.

_kCFStreamErrorCodeKey=-9802}}, NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made.

from gtm-http-fetcher.

thomasvl avatar thomasvl commented on May 14, 2024

This issue being discussed here isn't about the Fetcher code, it is about your server and convincing the OS to allow you to talk to it. If your server is TLS1.0, then (as I read it) requesting an exception for 1.1 isn't going to work. You likely want to read up some of the linked docs and Apple's general iOS 10 notes about the added networking security they are doing/requiring.

from gtm-http-fetcher.

mnang avatar mnang commented on May 14, 2024

We've changed our QA servers to TLSv1.2 and here are my ATS settings. Still fails at the connection:
Am I forgetting any other settings:
screen shot 2016-09-28 at 9 59 11 am

Thanks for your help.

from gtm-http-fetcher.

thomasvl avatar thomasvl commented on May 14, 2024

Closing this out since it looks like a site specific config and not something with the library itself.

from gtm-http-fetcher.

mansuu avatar mansuu commented on May 14, 2024

I got strange situation. My phone is having iOS version 12.1.2, but I got error "An SSL error has occurred and a secure connection to the server cannot be made". What I did is updated my plist file(Added NSTemporaryExceptionMinimumTLSVersion TLSv1.0). App run fine and again I removed the changes I made in info.plist. Now It's running fine. So, I am not able to find the actual reason for this error. Any suggestion?

from gtm-http-fetcher.

mvalbuquerque avatar mvalbuquerque commented on May 14, 2024

i have the same Problem
Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made."

from gtm-http-fetcher.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.