无法在Safari或UIWebView中通过HTTPS查看Quicktime影片 [英] Cannot view Quicktime movies over HTTPS in Safari or UIWebView

查看:146
本文介绍了无法在Safari或UIWebView中通过HTTPS查看Quicktime影片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让我的iPhone应用程序除了HTTP之外还使用HTTPS,但使用UIWebView或MPMoviePlayerController查看Quicktime MOV文件似乎无法通过HTTPS工作。我得到这部电影无法播放。我尝试在Safari中删除我的应用程序作为问题,同样的事情发生了。如果我使用HTTP,它工作正常。

I am trying to get my iPhone application to work with HTTPS in addition to HTTP, but using UIWebView or MPMoviePlayerController to view a Quicktime MOV file doesn't seem to work over HTTPS. I get "This movie could not be played". I tried in Safari to eliminate my app as being the problem, and the same thing happened. If I use HTTP, it works fine.

这个帖子有类似的讨论,但没有解决方案: http://discussions.apple.com/thread.jspa?messageID=12908818

This thread has a similar discussion, but no resolution: http://discussions.apple.com/thread.jspa?messageID=12908818

我没有使用自签名证书;我的机器有一个注册的SSL证书,我使用iPhone配置实用程序将GoDaddy中间证书和普通证书推送到我的iPad(4.2.1)。我验证了这一点,因为Safari在访问安全站点时没有提示我关于证书的信息,就像之前一样。我可以使用普通的浏览器(如OSX上的FF或Safari)通过HTTPS查看电影,而不是iOS。它似乎也在模拟器中工作,但我已经尝试了iPhone 4.1和iPad 4.2.1。

I am not using self-signed certs; my machine has a registered SSL cert, and I pushed both the GoDaddy intermediate cert and the normal cert to my iPad (4.2.1) using iPhone configuration utility. I verified this works because Safari doesn't prompt me about the certificate when visiting the secured site, like it would before. I can view the movie over HTTPS using normal browsers such as FF or Safari on OSX, just not iOS. It also appears to work in the simulator as well, but I have tried both iPhone 4.1 and iPad 4.2.1.

是否有任何解决方法可以让我查看视频HTTPS?

Is there any workaround that will let me view video over HTTPS?

推荐答案

在遇到同样的问题和症状后,我能够访问提到的Apple Developer Forum主题< a href =https://devforums.apple.com/message/361209#361209\"rel =noreferrer>这里

After experiencing the very same problem and symptoms, I was able to gain access to the Apple Developer Forum thread mentioned here

结果Apple线程是您必须在服务器上安装有效的中间证书仅安装服务器证书是不够的。

The upshot of the Apple thread is that you must have a valid Intermediate Certificate installed on the server. It is not enough to have only the server certificate installed.

我用Mac OS X 10.6服务器测试了这个。我安装了服务器证书,而桌面浏览器能够通过HTTPS传输视频,iOS设备(iPhone和iPad)都给出了这部电影无法播放错误。

I have tested this with Mac OS X 10.6 Server. I installed the server certificate and while desktop browsers were able to stream a video over HTTPS, iOS devices (iPhone and iPad) both gave the "This movie could not be played" error.

安装 中级证书 修复了问题。

Installing the Intermediate Certificate fixed the problem.

其他设备,像Android手机和平板电脑一样,RIM PowerBook(通过Flash)在没有中级证书的情况下播放视频没有问题。我怀疑这是iOS的安全性过高的情况,如果不是一个bug就是功能; - )

Other devices, like Android phones and tablets, and RIM PowerBook (via Flash) had no problems playing the video without the Intermediate Certificate. I suspect it is a case of iOS being overzealous with its security, a "Feature" if not a bug ;-)

我不是PKI专家,所以我不能告诉你为什么这样做。也许另一个贡献者可以解释这背后的PKI伏都教。

I'm not a PKI expert, so I cannot tell you why this works. Perhaps another contributor can explain the PKI voodoo behind this.

这篇关于无法在Safari或UIWebView中通过HTTPS查看Quicktime影片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆