【发布时间】:2012-05-11 15:25:00
【问题描述】:
我已经有一个development certificate in apple developer portal。我正在开发一个 iPhone 应用程序,我想在这个应用程序中集成 Apple 推送通知。我使用现有证书和enabled the Push Notification in this app id 创建了一个new App ID。我创建了一个 new Provisioning Profile 使用新创建的应用程序 ID。在这些步骤之前,我已经创建并下载了.cer file from keychain access。完成这些步骤后,我在我的 Mac 钥匙串访问中下载了新的created SSL (Apple Push Notification Service SSL certificate) file and installed。一旦我安装了这个文件,验证(绿色勾号)和got the .p12 file from this ssl file。
我关注了苹果文档RemoteNotificationsPG.pdf,在保存.p12文件后他们提到的这个文档中打开终端应用程序并输入以下推荐,
openssl pkcs12 -in Certificates.p12 -out Certificates.pem -nodes
我在我的终端应用程序中使用过这个,但出现了错误消息,即,
Error opening input file Certificates.p12
Certificates.p12: No such file or directory
您能否建议或指导我在这些步骤中做错了什么或遗漏了什么?请帮我。提前致谢。
编辑:
我将 Certificates.p12 文件存储在我的桌面上。文件夹路径为Desktop->1/5/2012_Certificate->2/5/12->Certificates.p12
我在终端中使用了'ls' command,它没有列出我的 Certificates.p12 文件。
我输入了cd *path* 这返回了No such file or directory。
请帮助我。提前致谢。
【问题讨论】:
-
您确定从正确的位置调用命令,即从包含 Certificates.p12 文件的文件夹吗? (在执行 'openssl ...' 之前在终端中尝试 'ls' - 你应该得到当前文件夹中包含的文件列表)。
-
谢谢Manicaesar先生。我试过这样是 openssl pkcs12 -in Certificates.p12 -out Certificates.pem -nodes。响应是 -bash: Is: command not found。我将 Certificates.p12 保存在名为 2/5/12 的桌面文件夹中。请帮我。提前致谢。
-
ulu5 已经回答了您在对我的评论的评论中提出的问题;)
标签: iphone ios terminal pem pkcs#12