IOS- 企业App"无法升级安装应用程序 因为证书无效"的解决方案
来源:互联网 发布:select count,sql,统计 编辑:程序博客网 时间:2024/06/06 12:50
今天调试自己开发的一款企业级App,发现通过之前的url无法升级安装企业应用,一直提示“无法安装应用程序 因为http://xxx.xxx.xxx证书无效”,折腾了一番,终于在StackOverFlow上找到了答案。在这里分享给大家。
StackOverFlow接:http://stackoverflow.com/questions/20276907/enterprise-app-deployment-doesnt-work-on-ios-7-1/22325916#22325916
原因是由于要安装更新企业应用,url必须是https的,不能是http,这就要求我们的服务器要支持https。因此,只要将原链接:
itms-services://?action=download-manifest&url=http://example.com/manifest.plist
改为
itms-services://?action=download-manifest&url=https://example.com/manifest.plist
测试
另外,如果想要在自己电脑上测试,可以运行下面脚本来支持https!
GitHub下载链接:https://gist.github.com/dergachev/7028596
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/# generate server.xml with the following command:# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes# run as follows:# python simple-https-server.py# then in your browser, visit:# https://localhost:4443import BaseHTTPServer, SimpleHTTPServerimport sslhttpd = BaseHTTPServer.HTTPServer(('localhost', 4443), SimpleHTTPServer.SimpleHTTPRequestHandler)httpd.socket = ssl.wrap_socket (httpd.socket, certfile='./server.pem', server_side=True)httpd.serve_forever()
其中httpd = BaseHTTPServer.HTTPServer((‘localhost’, 4443),
把’localhost’改成’ ‘,否则不能在手机的浏览器访问。
httpd = BaseHTTPServer.HTTPServer((’ ‘, 4443);
在电脑上启动:
python -m SimpleHTTPServer访问
https://192.168.xx.xx:4443
itms-services://?action=download-manifest&url=http://192.168.xx.xx:4443/manifest.plist
可以把plist上传到自己本机,然后可以用手机测试企业级app更新升级了。
0 0
- IOS- 企业App"无法升级安装应用程序 因为证书无效"的解决方案
- ios 企业应用"无法安装应用程序 因为证书无效"的解决方案
- iOS7.1企业应用"无法安装应用程序 因为证书无效"的解决方案
- iOS7.1企业应用"无法安装应用程序 因为证书无效"的解决方案
- iOS7.1企业应用"无法安装应用程序 因为证书无效"的完美解决方案
- iOS7.1企业应用"无法安装应用程序 因为证书无效"的解决方案
- iOS7.1企业应用"无法安装应用程序 因为证书无效"的解决方案
- iOS7.1企业应用"无法安装应用程序 因为证书无效"的解决方案
- iOS7 企业应用"无法安装应用程序 因为证书无效"的解决方案
- iOS7.1企业应用"无法安装应用程序 因为证书无效"的解决方案
- iOS7.1企业应用"无法安装应用程序 因为证书无效"的解决方案
- iOS7.1企业应用"无法安装应用程序 因为证书无效"的解决方案
- iOS7.1企业应用"无法安装应用程序 因为证书无效"的解决方案
- iOS7.1企业应用"无法安装应用程序 因为证书无效"的解决方案
- iOS7.1企业应用"无法安装应用程序 因为证书无效"的解决方案 linux tomcat ssl
- iOS7.1企业应用"无法安装应用程序 因为证书无效"的解决方案
- iOS7.1企业应用"无法安装应用程序 因为证书无效"的完美解决方案
- iOS7.1企业应用"无法安装应用程序 因为证书无效"的解决方案
- 深入浅出从底层分析 Redis client/server交互流程(干货)
- CentOS7修改服务器主机名方法
- NHK Easy News 翻译 12月22日-1
- 左右fragment
- arnold渲染vr视频全景视频
- IOS- 企业App"无法升级安装应用程序 因为证书无效"的解决方案
- js 把函数作为参数传递给另一个方法
- LeetCode笔记:189. Rotate Array
- AS出现Gradle's dependency cache may be corrupt错误的解决办法
- JavaScript学习笔记 CH.2 SEC.3 字符串
- 抓交通肇事逃犯
- LINUX基础知识
- jQuery的function(a){a=a||"text";}表示的意义
- FTP服务器日志解析