Convert .cer to .p12

I am working on a project for a client. I have two .cer files (developer and distribution) that load into Keystore Access on Mac OS X. However, I cannot export the .p12 file.

ui

As an alternative, I tried OpenSSL, but still no luck ...

openssl pkcs12 -export -in followMe_ios_development.cer -out followMe_ios_development.p12 -clcerts -nokeys

How can I export this .cer file as a .p12 so that I can compile this iOS app?

+4
source share
2 answers

try the following: if you have files:

aps.cer, downloaded from Apple.

app.key, your own private key generated by openssl.

1, .cer .pem:

openssl x509 -in aps.cer -inform DER -out aps.pem -outform PEM

2nd, .pem .key .p12:

openssl pkcs12 -export -out aps.p12 -inkey app.key -in aps.pem

.p12.

CF:

aps_developer_identity.cer p12 Key Chain?

.p12

+10

Push Notification, :

  • ""
  • , ".certSigningRequest",
  • ".p12"
+9

Source: https://habr.com/ru/post/1652121/


All Articles