Create .p12 file from an iPhone Developer Certificate on Windows

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
26,291
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 11, 2010

Follow along as I show you how to create a P12 file from your iPhone Developer Certificate using OpenSSL on a Windows machine. Visit http://www.tutorialsbyibrent.com for more information.

Follow me on Twitter: @iBrent

Here is the text for creating the PEM:

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

and for creating the .p12 file:

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

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (iBrent)

  • so much easier to create a .p12 file by going into CS5 Flash and choosing Adobie Air,

    then just go to the Air settings and signature tab, leave everything blank and choose create, put in your details and it will save as a .p12 file. all done.

  • @huttd You realize that the .p12 generated by Flash isn't the same as the one I show in this tutorial, right? The .p12 Flash generates won't let you sign the app for testing or deployment on an iOS device.

Top Comments

  • For anyone who got a "unable to write a random state" with, I ran the cmd prompt as an admin, and it worked fine. In the start menu, just type 'cmd' in the search field, and right click 'cmd' and click 'Run as administrator"

see all

All Comments (41)

Sign In or Sign Up now to post a comment!
  • "No certificate matches private key"... :(( .. any idea why?

  • @larssonk22 nevermind found your previous video

  • where did you get the mykey.key from??

  • This a very helpful video!thanks for posting. you guys interested in becoming an iPhone Developer?one of the most lucrative and exciting job nowadays. Bitzio is currently looking for promising iPhone developers as of now. So if creating applications is your hobby, why not make money out of it!subscribe to my channel to learn more about what it takes to be an iPhone developer. see you around!

  • great video.

  • i have file p12

  • Great Video!

  • @DrN0OB To be honest it's easier to do this on a Mac, so be sure to check out my tutorials showing how to do that. In general for a distribution key, you need to create a provisioning profile in the distribution tab on your iOS dev account. I've got videos on that as well. Otherwise, if you know you've done all that, make sure you have the correct app id in your -app.xml that matches the Distribution cert, etc. Good luck!

  • I keep getting an error "No Certificate Matches Private Key" when I change everything to "distribution_identity"

  • is there a way to do this with a distribution key?

  • Hi, i successfully managed to create my p12 file and it works, thank you !

    But i want to create iphone applications from another computer (laptop), how can i do that ? the p12 file doesn't seem to work..

  • ok thanks for that, im just making devices on Windows platforms and it works fine. thaks for the heads up.

  • after i type what you have at 1:54 i get the following error: 'openssl' is not recognized as an internal or external command.

    Any suggestions?

  • what should i type when it says 'enter export pass: because i keep typing a same word for verefiying and export : and tells me unable to write a random state

  • after openssl pkcs12 -export -inkey mykey.key -in distribution_identity.pem -out iphone_dist.p12

    getting "unable to write 'random state'" Any suggestion are much appreciated.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more