iOS app HTTPS handling differences on development vs. Ad-Hoc distributables
iOS app HTTPS handling differences on development vs. Ad-Hoc distributables
- Subject: iOS app HTTPS handling differences on development vs. Ad-Hoc distributables
- From: Alex Zavatone <email@hidden>
- Date: Wed, 27 Jan 2016 14:44:42 -0500
I hope this is the correct place to post this question.
After fixing the code signing issue that plagued us yesterday, I just started testing the ad-hoc distributable of our iOS app.
This app uses push notifications and https communication to an internal web service end point and upon launch registers for APNS notifications.
Our web service https uses a self signed https cert.
Our app fails https communication with our web service, but only in the ad-hoc signed version of the app. (iOS7.x, 8.x, 9.1). The version I run from Xcode has none of these errors on the target devices.
I've got transport security set to allow arbitrary downloads set to true.
We're getting this error on any HTTPS communication:
Jan 27 14:32:51 iPhone-5s XXXX[898] <Error>: SecOSStatusWith error:[-25299] The operation couldn’t be completed. (OSStatus error -25299 - Remote error : The operation couldn‚Äôt be completed. (OSStatus error -25299 - duplicate item O,genp,A6A11086,L,ck,YYYYYYYY.ZZZZZZZZ,0,acct,svce,gena,v_Data,20160127193251.451476Z,F68AFBD6))
And then lots of:
Jan 27 14:15:44 Alex-Zs-iPhone-6 XXXXXX[2966] <Error>: SecTrustEvaluate [leaf AnchorTrusted]
Jan 27 14:15:44 Alex-Zs-iPhone-6 XXXXXX[2966] <Warning>: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
This never used to happen on the web server that we are using with Ad-Hoc signed build on the same server. Is there any restriction that comes into play with an ad-hoc distributed iOS app and self signed SSL certs that I haven't covered?
Would this best be handled in setting up a challenge response reply?
Ideas are welcome.
Thanks.
Alex Zavatone
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden