3

http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1

我正在关注 ablove 链接以启用我的应用程序的推送通知。当我将 cer 文件转换为 pem 文件时出现错误

system17:~ sairam$ openssl x509 -in aps_development.cer -inform der -out PushChatCert.pem

Error opening Certificate aps_development.cer
2383:error:02001002:system library:fopen:No such file or directory:/SourceCache/OpenSSL098/OpenSSL098-35.2/src/crypto/bio/bss_file.c:356:fopen('aps_development.cer','r')
2383:error:20074002:BIO routines:FILE_CTRL:system lib:/SourceCache/OpenSSL098/OpenSSL098-35.2/src/crypto/bio/bss_file.c:358:
unable to load certificate

任何帮助将不胜感激。在此先感谢

4

2 回答 2

10

您从主目录调用“openssl”命令,但证书文件在您的桌面目录中。所以你必须先切换到那个目录:

$ cd Desktop
$ openssl x509 -in aps_development.cer -inform der -out PushChatCert.pem
于 2013-09-03T08:01:03.417 回答
0
$ cd ~/Desktop
$ openssl pkcs12 -in WenderCastPush.p12 -out WenderCastPush.pem -nodes -clcerts
于 2016-05-13T02:29:29.273 回答