创建APNS .pem文件? [英] Creating .pem file for APNS?
问题描述
如何创建一个.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:
- 启动钥匙串访问从当地的Mac和从登录钥匙串,由证书类别过滤器。你会看到一个名为可扩展选项苹果开发推送服务
- 右键点击苹果开发推送服务>导出苹果开发推送服务ID123。保存为
APNS-DEV-cert.p12
文件的地方,你可以访问它。没有必要输入密码。 -
下一个命令生成Mac的终端PEM格式(增强保密邮件安全证书)的证书:
- 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"
- 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. 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屋!