IOS证书配置及打包
一:申请bundleID developer.apple.com/account
- 1
- 2
- 3
- 4
二:生成CertificateSigningRequest,为生成证书用
- 1
- 2
- 3 生成一个CertificateSigningRequest,保存本地,备用
三:生成证书(分别生成开发用证书、发布用证书)
- 1
- 2
- 3
- 4
- 5
四:添加设备
- 1
- 2 udid可通过www.pgyer.com/tools/udid 生成
- 3
五:生成文件(分别生成三个文件)
-
1
-
2 分别选择、生成
-
3
-
4
-
5
-
6
六:将生成的五个文件分别双击(先点击cer,再点击mobileprovion)
- 1
七:安装的证书全部导出为P12证书(设置密码,给他人使用)
-
1
-
2
-
其他 如果有的推送需要使用pem的话进入到P12文件目录之后使用如下命令:
openssl pkcs12 -in CertificateName.p12 -out CertificateName.pem -nodes
查看证书有效期:
openssl x509 -in xxx.pem -noout -dates
查看证书是否合法:
开发:openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert xxx.pem -key xxx.pem
生产:openssl s_client -connect gateway.push.apple.com:2195 -cert xxx.pem -key xxx.pem
八:打包
-
2
-
3打开Xcode
-
4
-
5
-
6
-
7
-
8
-
9
-
10
*11在构建版本中可以查看上传的版本