[英]Convert .p12 file to .pem using Terminal app in Mac “No such file or directory” error?
我已經從鑰匙串訪問中導出了“ Apple Development IOS推送服務”證書,並將“ apns-dev-cert.p12”保存在桌面中。 我想啟用Apple Push Notification
我已關注這些博客將Terminal應用程序中的apns-dev-cert.p12 to apns-dev-cert.pem
轉換apns-dev-cert.p12 to apns-dev-cert.pem
,
http://bhaveshkumbhani.blogspot.in/2011/12/convert-p12-to-pem-for-apns.html
http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12
Apple Document RemoteNotificationPG.pdf
我在終端中使用了這些命令,
1.V******-Ms-iMac-2:~ c*****$ openssl pkcs12 -in apns-dev-cert.p12 -out apns-dev-cert.pem -nodes -clcerts
Response : Error opening input file apns-dev-cert.p12
Certificates.p12: No such file or directory
2.V******-Ms-iMac-2:~ c*****$ openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12
Response : Error opening input file apns-dev-cert.p12
Certificates.p12: No such file or directory
3.V******-Ms-iMac-2:~ c*****$ ls
All_iOS_Applications_Document.doc Pictures
AppStoreSubmissionSteps.doc Public
Desktop Sites
Documents Softwares
Downloads Untitled.txt
Dropbox pic
Library pic.zip
Movies pricelist.txt
Music sms.txt
Nana_User_Case_Documents.odt
4. V******-Ms-iMac-2:~ c*****$ cd
5.V******-Ms-iMac-2:~ c*****$ cd/Users/c*****/Desktop/A
-bash: cd/Users/c*****/Desktop/A: No such file or directory
我不明白為什么終端總是說“沒有這樣的文件或目錄”? 我需要在Mac上保存.p12文件的位置?
我正在使用Terminal app Version 2.1.2 (273.1). Mac OS X version 10.6.8
Terminal app Version 2.1.2 (273.1). Mac OS X version 10.6.8
。
你能滿足我的需要嗎? 我需要使用.pem文件啟用APNS。 請幫我。 提前致謝。
編輯:
我在Mac Terminal應用程序中添加了嘗試過的Raywenderlich.com終端代碼
1. V******-Ms-iMac-2:~ c*****$ pwd
/Users/creagx
2. V******-Ms-iMac-2:~ c*****$ cd/ Users/creagx/Desktop/A
-bash: cd/: No such file or directory
輸入:
cd /Users/creagx/Desktop/A (Space between cd and Slash: cd[SPACE]/Users/creagx/Desktop/A
如果桌面上有一個名為“ A”的文件夾,其中有p12文件。
然后繼續執行其他命令
openssl pkcs12 -in apns-dev-cert.p12 -out apns-dev-cert.pem -nodes -clcerts
openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.