使用客户端证书的 iPhone https 授权
我有兴趣从我的应用程序播放 HTTP 实时流数据。该流(我创建的)已加密,并且指向 AES 密钥的 URL 包含在流索引文件中。 当 MPMoviePlayer 发现加密已启用时,它会点击此 URL 获取 AES 密钥。
我希望此 URL 由 https 提供服务,并让 MMMoviePlayer 使用我在用户购买内容时提供的客户端证书。我也不希望任何用户交互进行身份验证,因为他们已经同意购买证书。
我可以通过编程方式从我的应用程序安装客户端证书,以便 MMMoviePlayer 在获取 AES 密钥时透明地使用此证书进行身份验证吗?
谢谢!
I am interested in playing HTTP live streaming data from my app. The stream (which I create) is encrypted, and a URL pointing to the AES key is included in the stream index file.
MPMoviePlayer hits this URL for the AES key, when it sees that encryption is enabled.
I would like this URL to be served by https, and for MMMoviePlayer to use a client certificate that I provide when the user purchases the content. I also do not want any user interaction for authentication, since they have already agreed to purchase the certificate.
Can I programmatically install the client certificate from my app so that MMMoviePlayer transparently uses this certificate to authenticate when getting the AES key?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您可以,查看此示例代码中的 CredentialImportController 类 http://developer.apple.com/iphone/library/samplecode/AdvancedURLConnections/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009558
您将存储应用程序钥匙串中的信息无法被任何其他应用程序访问,除非您使用您的应用程序 ID 共享该钥匙串。
Yes you can, check out the CredentialImportController class in this sample code http://developer.apple.com/iphone/library/samplecode/AdvancedURLConnections/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009558
you will store the information in the application keychain which is not accessible by any other application unless you share that keychain using your app id.