ios7.1 in-house app的发布方法

时间:2014-04-12 15:40:12   收藏:0   阅读:1063

iOS7.1版本的in-house app必须发布到https站点才能下载安装,原来的连接:

itms-services://?action=download-manifest&url=http://example.com/manifest.plist

需要修改为:

itms-services://?action=download-manifest&url=https://example.com/manifest.plist

可参见:

http://www.hanchorllc.com/2014/02/01/ios-7-1-requires-ad-hoc-installs-to-be-over-https/

 

方案1:将ipa文件和plist文件上传到dropBox上,可参见:

http://stackoverflow.com/questions/20276907/enterprise-app-deployment-doesnt-work-on-ios-7-1/22367111#22367111

方案2:购买第三方CA证书

方案3:使用openssl生成自签名证书

 

现以apache_2.2.8作为web服务器为例说明方案3

1. 安装并配置apache

2. 生成证书

将文件openssl.cnf拷贝到bin目录下,依次执行下列语句:

openssl genrsa -out server.key 1024

openssl req -new -key server.key -out server.csr -config openssl.cnf

openssl genrsa  -out ca.key 1024

openssl req  -new -x509 -days 365 -key ca.key -out ca.crt  -config openssl.cnf 

openssl ca -in server.csr -out server.crt -cert ca.crt -keyfile ca.key -config openssl.cnf

 

如提示输入Common Name,请输入服务器IP或域名。最后一条指令执行前需要在bin目录创建demoCA,里面创建文件夹newcerts和文件index.txt及serialindex.txt为空,serial内容为01

将生成的文件server.crtserver.key拷贝到D:\Program Files\Apache Group\Apache2\conf下面,这个位置可以在httpd-ssl.conf文件中修改

将.plist和.ipa文件拷贝到D:\Program Files\Apache Group\Apache2\htdocs,这个位置也可以在httpd-ssl.conf中修改,如果是http访问方式则在httpd.conf中修改

3. 在设备上安装app

ca.crt用邮件发送到设备,在设备上安装后用Safari访问

tms-services://?action=download-manifest&url=https://example.com/manifest.plist。实际情况下可以做一个html文件,把上述地址做出一个链接。

4. 注意

      httpd -k -install

      Apache -k install

5. 参考

http://blog.csdn.net/zhaoxy_thu/article/details/21133399#reply

http://stackoverflow.com/questions/22411449/ios-7-1-ota-ssl-error

http://stackoverflow.com/questions/20276907/enterprise-app-deployment-doesnt-work-on-ios-7-1/22367111#22367111

http://www.hanchorllc.com/2014/02/01/ios-7-1-requires-ad-hoc-installs-to-be-over-https/

http://hi.baidu.com/johnzhjfly/item/024b494104674ee91e19bc95

ios7.1 in-house app的发布方法,布布扣,bubuko.com

原文:http://www.cnblogs.com/zzy0471/p/3658572.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!