Konvertieren Sie eine .p12-Datei in eine .pem-Datei mit der Terminal-App auf dem Mac.
Ich habe das Zertifikat "Apple Development IOS Push Service" von Keychain Access exportiert und die Datei "apns-dev-cert.p12" auf meinem Desktop gespeichert. Ich möchte aktivierenApple Push Notification
Ich bin diesen Blogs gefolgt, um sie zu konvertierenapns-dev-cert.p12 to apns-dev-cert.pem
von der Terminal-App,
<code>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 </code>
Ich habe diese Befehle in Terminal verwendet,
<code> 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 </code>
Ich kann nicht verstehen, warum das Terminal immer "Keine solche Datei oder Verzeichnis" sagt. Wo muss ich die .p12-Datei auf meinem Mac speichern?
LustigTerminal app Version 2.1.2 (273.1). Mac OS X version 10.6.8
.
Kannst du bitte, was ich tun muss? Ich muss den APNS mithilfe der PEM-Datei aktivieren. Bitte hilf mir. Danke im Voraus.
BEARBEITEN:
Ich habe versucht, Raywenderlich.com Termial Code in meinem Mac Terminal App hinzugefügt
<code>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 </code>