创建APNS .pem文件? [英] Creating .pem file for APNS?

查看:195
本文介绍了创建APNS .pem文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何创建一个.pem文件被存储在APN有效载荷数据托管服务器?

How do I create a .pem file to be stored in the hosting server for APN payload data?

推荐答案

下面是我做的,来自:<一href=\"http://blog.boxedice.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/\">blog.boxedice.com和iPhone高级项目第10章byJoe Pezzillo。

Here is what I did, From:blog.boxedice.com and "iPhone Advanced Projects" chapter 10 byJoe Pezzillo.

通过在钥匙串aps_developer_identity.cer:

With the aps_developer_identity.cer in the keychain:


  1. 启动钥匙串访问从当地的Mac和从登录钥匙串,由证书类别过滤器。你会看到一个名为可扩展选项苹果开发推送服务

  2. 右键点击苹果开发推送服务>导出苹果开发推送服务ID123。保存为 APNS-DEV-cert.p12 文件的地方,你可以访问它。没有必要输入密码。

  3. 下一个命令生成Mac的终端PEM格式(增强保密邮件安全证书)的证书:

  1. Launch Keychain Access from your local Mac and from the login keychain, filter by the Certificates category. You will see an expandable option called "Apple Development Push Services"
  2. Right click on "Apple Development Push Services" > Export "Apple Development Push Services ID123″. Save this as apns-dev-cert.p12 file somewhere you can access it. There is no need to enter a password.
  3. The next command generates the cert in Mac’s Terminal for PEM format (Privacy Enhanced Mail Security Certificate):

openssl pkcs12 -in apns-dev-cert.p12 -out apns-dev-cert.pem -nodes -clcerts


在通过使用chmod 400设置此未加密的密钥的文件权限的服务器。

On the server set the file permission of this unencrypted key by using chmod 400.

这篇关于创建APNS .pem文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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