惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
D
Docker
Microsoft Security Blog
Microsoft Security Blog
Google DeepMind News
Google DeepMind News
M
MIT News - Artificial intelligence
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
Y
Y Combinator Blog
Vercel News
Vercel News
F
Fortinet All Blogs
B
Blog
Recent Announcements
Recent Announcements
A
About on SuperTechFans
GbyAI
GbyAI
T
The Blog of Author Tim Ferriss
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
MongoDB | Blog
MongoDB | Blog
Stack Overflow Blog
Stack Overflow Blog
B
Blog RSS Feed
C
Check Point Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
Visual Studio Blog
月光博客
月光博客

博客园 - zhoup

文鹏教育_jmeter培训_逻辑控制器_循环取样器 02 jmeter性能测试系列_JForum测试论坛的环境搭建 01 jmeter性能测试系列_Jmeter的体系结构 NSTimer的使用[zhuang] UIViewContentMode各类型效果 给iOS开发新手送点福利,简述文本属性Attributes的用法 IOS 设置导航栏全局样式 iOS 在tableView上添加button导致按钮没有点击效果和不能滑动的 zhuang xcode 插件地址 AFNnetworking详解 NSRunLoop详解 利用SQL注入漏洞登录后台的实现方法 Xcode 7免证书真机调试 [转]CABasicAnimation用法 zhuang 定制iOS 7中的导航栏和状态栏 zhuang 自定义Xcode代码模板:Code Snippet [zhang] ViewController的生命周期分析和使用 iOS开发--一些UITabBarItem属性的设置[转] UINavigationItem UINavigationBar 关系分析[转]
实战p12文件转pem文件
zhoup · 2016-02-19 · via 博客园 - zhoup

 1。首先生成一个ssl的证书

选择app IDS 后实现下面这个(这里不详细说明怎么生成了)

点击Download按钮,我就下载Development的ssl证书,下载成功后,双击运行,会打开钥匙串程序。找到我的证书-》选中Apple Development IOS Push Servers:证书(安装正确的话,前面会有一个三角形)

然后右键单击,分别导出(证书和私钥的p12文件)

 假设为cer.p12和key.p12..(要记得设置密码哟)

 2.p12文件转化成pem文件

      cer.p12文件 转cer.pem文件

             openssl pkcs12 -clcerts -nokeys -out cer.pem -in cer.p12

      key.p12文件转key.pem文件

            openssl pkcs12 -nocerts -out key.pem -inkey.p12

注意这里有三个密码输入(前两个是生成p12时设定的密码,后一个是服务端通讯要用到的密码。建议同一个密码)

如果需要key设置加密:
  

openssl rsa -in key.pem -out key.unencrypted.pem

然后就可以合并两个.pem文件。

cat cer.pem key.unencrypted.pem > cer_key.pem