Comments (11)
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.
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.
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.
Thanks for the reply, but i've added the ATS to plist.
Please see the details below:
Do i need to add any other details?
from gtm-http-fetcher.
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.
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.
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.
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:
Thanks for your help.
from gtm-http-fetcher.
Closing this out since it looks like a site specific config and not something with the library itself.
from gtm-http-fetcher.
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.
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)
- Put method HOT 3
- Double-logging when using |setShouldDeferResponseBodyLogging:| HOT 2
- Unable to use in iOS App Extension due to sharedApplication HOT 1
- Please add semver tagged releases HOT 1
- iOS 5 compatibility issues HOT 1
- does GTMHTTPFetcher support ipv6? HOT 1
- GTMHTTPFetcher JSON HOT 2
- ignore image files on logging HOT 3
- Build With LLVM 4.0 will has error HOT 1
- GTM_NONNULL breaks other Google repositories HOT 1
- Please add semantic version tags HOT 2
- Patch for /trunk/Source/Tests/GTMHTTPFetcherFetchingTest.m HOT 2
- uploadNextChunkWithOffset:fetcherProperties is bugged for offset and content-range interpretation HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtm-http-fetcher.