The appropriate client certificate was not used when using HLS with AVPlayer
| Originator: | k-hayashida | ||
| Number: | rdar://26239710 | Date Originated: | 12-May-2016 03:39 PM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | iOS 9.3.1 |
| Classification: | Security | Reproducible: | Allways |
Summary: An error has occurred (described in the Actual Results section) when trying connect to a server that requires client certificate authentication using NSURLCredential with AVPlayer even after setting a client certificate in the NSURLCredential. Steps to Reproduce: 1. Use NSURLCredential (loaded with the client certificate) with iOS application 2. Connect to a server that supports playback via HLS with AVPlayer 3. Server requests for client certificate Expected Results: 1. iOS device sends (client certificate) to server, and passes the authentication 2. Server responds with related video data and starts playback. Actual Results: The following is the client certificate sent for authentication to which it failed: ``` /C=US/O=Apple Inc./OU=Apple Certification Authority/CN=Apple Root CA, issuer: /C=US/O=Apple Inc./OU=Apple Certification Authority/CN=Apple Root CA ``` Why is it that AVPlayer uses this client certificate instead of the specified one? Version: Xcode Version 7.3 (7D175) Notes: The issue reproduction from devices were 100% however, when we tried it with simulator (using another client certificate), it works fine Configuration: Test Devices、with iOS9.3: iPhone 5s (Model A1453, A1533) iPod touch (5th generation) iPad Air 2 (Model A1566)
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!