我設法解決這個問題,它只是需要封裝在一個shell腳本中,它是很好的去。 我假設您已經下載並重命名了您的'apple_developer_identity.cer'證書,在這裏我使用'test.cer',並且您還從您的鑰匙串中導出了開發人員密鑰,在下面的示例中名爲'private_dev_key.p12'。
#convert *.cer (der format) to pem
openssl x509 -in test.cer -inform DER -out test.pem -outform PEM
#convert p12 private key to pem (requires the input of a minimum 4 char password)
openssl pkcs12 -nocerts -out private_dev_key.pem -in private_dev_key.p12
# if you want remove password from the private key
openssl rsa -out private_key_noenc.pem -in private_key.pem
#take the certificate and the key (with or without password) and create a PKCS#12 format file
openssl pkcs12 -export -in test.pem -inkey private_key_noenc.pem -certfile _CertificateSigningRequest.certSigningRequest -name "test" -out test.p12
注意:如果你覺得這一切都有點長篇大論達到什麼可以用點擊幾下鼠標和一個文件名的打字來完成,然後再考慮在那裏你有20個應用程序的情況下,你想要啓用通知。每個應用程序都有一個開發和生產證書,分別在4個月和12個月內過期。這是一個非常無聊和容易出錯的工作...
「它們都是使用相同的證書籤名請求創建的」 - 爲什麼?在這種情況下,他們都將被命名爲相同的共同名稱,這是什麼目的? – NoBugs 2015-02-02 19:06:39