使用HTTPS的App无线安装无法正常工作 [英] App Over-The-Air Installation with HTTPS not working

查看:122
本文介绍了使用HTTPS的App无线安装无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道通常通过HTTPS安装是有效的,但不知何故它不在我的环境中。

I know that in general installation via HTTPS is working but somehow it doesn't in my Environment.

据我所知,itms-service链接是HTTP :

The itms-service link is HTTP as far as I understood:

itms-services://?action=download-manifest&url=http://' . $_SERVER['SERVER_NAME'] . $downloadLink

.plist中的链接是HTTPS

The links in the .plist are then HTTPS

<key>assets</key>
        <array>
            <dict>
                <key>kind</key>
                <string>software-package</string>
                <key>url</key>
                <string>https://app.ipa</string>
            </dict>
            <dict>
                <key>kind</key>
                <string>full-size-image</string>
                <key>needs-shine</key>
                <true/>
                <key>url</key>
                <string>https://image_512x512.png</string>
            </dict>
            <dict>
                <key>kind</key>
                <string>display-image</string>
                <key>needs-shine</key>
                <true/>
                <key>url</key>
                <string>https://image_57x57.png</string>
            </dict>
        </array>

但该应用程序无法安装。我总是收到消息无法加载应用程序

But the app won't install. I always get the message "App could not be loaded"

所有URL都可通过HTTP& amp; HTTPS。

All URL's are reachable with HTTP & HTTPS.

XCode显示应用程序日志

XCode shows the app log


unknown securityd [2331]: CFReadStream域名:12错误:8

unknown securityd[2331] : CFReadStream domain: 12 error: 8

我在这里做错了什么?

Thx

推荐答案

问题是iPad需要知道证书颁发机构。

如果您使用HTTPS分发应用程序且CA Server是您自己的,则需要在iPad上安装证书。否则iOS会尝试下载它。

If you distribute Apps with HTTPS and the CA Server is your own, you need to install the certificate on the iPad. Otherwise iOS will try to download it.

您可以安装它通过电子邮件发送到您的iPad或从Keychain Access程序创建.pem文件并将其托管在您的服务器用于安装目的。然后用Safari打开它,iOS将要求你接受它。

You can install it sending it via email to your iPad or create a .pem File from the Keychain Access program and host it on your server for installation purposes. Then open it with Safari and iOS will ask you to accept it.

然后安装工作。但要小心使用.htaccess,因为在安装过程中一起使用HTTPS和HTTP似乎会触发每个请求的登录/密码,对于图像,.ipa和.plist是4,这真的很烦人。

Then the installation works. But beware of using .htaccess as using HTTPS and HTTP together in the installation process seems to trigger the login/password for every request, which are 4 for images, .ipa and .plist, which is really annoying.


请注意,由于Apple推出了iOS 7.1,因此只需使用HTTPS引用.plist文件。

Please keep in mind that you need to refer to the .plist file only with HTTPS since Apple introduced iOS 7.1.

请参阅此处:企业应用程序部署在iOS 7.1上无效

这篇关于使用HTTPS的App无线安装无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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