SecTrustEvaluate error communicating with APNS Sandbox

Originator:evan
Number:rdar://27426357 Date Originated:19-Jul-2016 09:38 AM
Status:Open Resolved:
Product:Other Product Version:
Classification:Security Reproducible:YES
 
Summary:
There appears to be an error - SecTrustEvaluate - when communicating with APNS Sandbox services. In iOS, the neither of the App delegate methods didRegisterForRemoteNotificationsWithDeviceToken: or didFailToRegisterForRemoteNotificationsWithError: get called, and no device token is supplied to the App. Last saw push notification registration working with the development build of our App at approximately 10 PM July 18 Mountain Time.

Steps to Reproduce:
1. Run our push-notification enabled App in Xcode
2. Wait for App to finish launching
3. Check Xcode console and device console logs

Expected Results:
Callbacks to didRegisterForRemoteNotificationsWithDeviceToken: if registration succeeds, or didFailToRegisterForRemoteNotificationsWithError: if registration fails

Actual Results:
Neither delegate methods gets called. Errors appear in console logs:

Jul 19 09:36:09 iPhone apsd[109] <Error>:  SecTrustEvaluate  [leaf AnchorTrusted]
Jul 19 09:36:09 iPhone apsd[109] <Warning>: CFNetwork SSLHandshake failed (-9807)
Jul 19 09:36:09 iPhone apsd[109] <Error>:  SecTrustEvaluate  [leaf AnchorApple AnchorTrusted CheckIntermediateMarkerOid]
Jul 19 09:36:09 iPhone apsd[109] <Warning>: 2016-07-19 09:36:09 -0600 apsd[109]: Failed to validate certificate chain for courier.sandbox.push.apple.com.
Jul 19 09:36:09 iPhone apsd[109] <Notice>: 2016-07-19 09:36:09 -0600 apsd[109]: Failed to validate certificate chain for courier.sandbox.push.apple.com.
Jul 19 09:36:09 iPhone apsd[109] <Warning>: 2016-07-19 09:36:09 -0600 apsd[109]: Untrusted peer, closing connection immediately
Jul 19 09:36:09 iPhone apsd[109] <Notice>: 2016-07-19 09:36:09 -0600 apsd[109]: Untrusted peer, closing connection immediately


Version:


Notes:
Other reports of this issue on the Developer Forum: https://forums.developer.apple.com/thread/52224

Configuration:
iPad Air 2 running iOS 9.3.2
iPhone 6 running iOS 9.3.3
iPhone 4S running iOS 9.2.1

Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!