0

I using following comment to generate p12 file,

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

openssl pkcs12 -nocerts -in mykey.p12 -out mykey.pem

openssl pkcs12 -export -inkey mykey.pem -in developer_identity.pem -out iphone_dev.p12

p12 file was generated successfully for development but it wont work for distribution...

I got error in the last step, asking password for mykey.pem file after give password it shows

"No certificate matches private key"

Enter pass phrase for mykey.pem:
No certificate matches private key

Can any one help me with this?

batman
  • 1,937
  • 2
  • 22
  • 41
Rajesh
  • 359
  • 3
  • 14
  • Try to generate p12 file from keychain (with 2 requested certificates). http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1 this can help you out – Artem Z. May 22 '14 at 06:39
  • see this link. it may help you. http://stackoverflow.com/a/10045210/510814 – Senthilkumar May 22 '14 at 06:43

1 Answers1

0

I change .cer file for distribution but forget get .p12 file from keychain for distribution...

after get .p12 file from keychain its working.

Rajesh
  • 359
  • 3
  • 14