Вы находитесь на странице: 1из 4

2/18/2016

ALL

HowtoCreateaniOSProvisioningProfileandP12withWindows| HTML5MobileTutorials| Ionic,Phaser,SenchaTouch&PhoneGap


IO NIC

PHASER

SENCHA

PHO NEGAP

PO DCASTS

BOOKS

SER V ICES

CO NTACT

AB O UT

SU P P ORT M E

SUB SCR IB E

To search, type and hit enter.

Mobile Apps, Tutorials

How to Create an iOS Provisioning Profile and P12


with Windows
Follow@joshuamorony
YouTube

777follow ers

463

Josh Morony September 4, 2013


When I first started developing with Sencha Touch and PhoneGap on
my Windows machine I was ecstatic to learn that I could create iOS
applications without a Mac and XCode. This enthusiasm would later
be crushed when I attempted to actually put the application on my
phone, and learned of the various certificates, profiles and other
required filesthat I had never heard of.

Imagine. Build.
Launch.
TRY IT FREE

I scoured the internet and most of the information I found lead me to


believe the only way to to generate these files was with a Mac and
XCode, until I came across OpenSSL. Im going to provide a step by
step walk through for creating a provisioning profile and a p12 file using Windows and OpenSSL. Im
assuming you have already registered as an Apple developer and have access to the developer portal.
First up, youre going to have to install OpenSSL. You can download it and follow the instructions on this
website:http://www.openssl.org/related/binaries.html

1. Generate a certificate signing request


Open up a commandterminal (make sure to run it as an administrator) and change your working directory
to the directory of the bin folder of the OpenSSL installation. In my case that is:

cdc:\OpenSSLWin64\bin

2. Now you can create your private key with the following command:

opensslgenrsaoutkeyname.key2048

This will generate a file called keyname.key in the bin folder. You can of course substitute a different name
for keyname if you wish.Keep this file where it is for now.

http://www.joshmorony.com/howtocreateaniosprovisioningprofileandp12withwindows/

1/4

2/18/2016

HowtoCreateaniOSProvisioningProfileandP12withWindows| HTML5MobileTutorials| Ionic,Phaser,SenchaTouch&PhoneGap

3. Run the following command to create a certificate signing request:

opensslreqnewkeykeyname.keyoutCertificateSigningRequest.certSigningRequestsubj"/emailAddress=

Change the command to suit your details, if you changed the private key to something else make sure to
reflect that here. The C=AU portion indicates the country code, you could replace this with US if you are
from the United States for example.

2. Generate a development or distribution certificate


1. Log into the iOS Developer Portal and go to the Certificates, Identifiers & Profiles section.
2. Under iOS Certificates click the add button and then select iOS App Development (or if you are ready to
release, choose the Production App Store and Ad Hoc option).
3. Click continue until you arrive at a page that gives you the option to upload your Certificate Signing
Request. This file is located in the bin folder of OpenSSL along with your private key, locate and then
upload it.
4. If this is successful you should be given the option to download the resulting iOS Development
Certificate. Download the certificate and save it in the OpenSSL bin folder along with the other two files.

3. Create an App ID
1. Go to the App IDs section under Identifiers and click on the add button. Fill out the details in this section
and then click continue, your application should now be listed under App IDs.

4. Add Devices
1. Next up youll need to add the device or devices you want to install the application on. Go to the Devices
section and click on the add button again.
Follow@joshuamorony

777follow ers

YouTube

463

GoogleDriveForWork
UnlimitedStorageForYourDocs,SlidesAndSpreadsheets$10/Month

2. Add the name and the UDID of the device(s) you want to install the application on. To get this information
you can plug your device into the computer and open up iTunes, open your device in iTunes and locate
your Serial Number this is not the number you need.Once you have located the Serial Number, click on it.
This will reveal the UDID of the device.

5. Create a Provisioning Profile


1. Once you have finished adding any devices you want, you can proceed to the Provisioning Profiles
section and once again click the add button in the top right.
2. Choose iOS App Development (again, if you are ready to release the app choose the App Store option
http://www.joshmorony.com/howtocreateaniosprovisioningprofileandp12withwindows/

2/4

2/18/2016

HowtoCreateaniOSProvisioningProfileandP12withWindows| HTML5MobileTutorials| Ionic,Phaser,SenchaTouch&PhoneGap

under distribution instead) and click continue.


3. Choose the certificate you just created and click continue.
4. Now select any devices you want the application to run on and click continue. Name the provisioning
profile and click Generate.

6. Create a .p12 file


Congratulations!You can now download your provisioning file, once again save it in the same OpenSSL\bin
folder. Now all that is left to do is create the P12 file.
1. Once again, run a command promptas an administrator, change your directory to OpenSSL\bin and run
the following command:

opensslx509indeveloper_certificate.cerinformDERoutapp_pem_file.pemoutformPEM

Replace developer_certificate with the name of the certificate you just created and if you wish you can
change app_pem_file to whatever you wish.
2. Now youll need to use the file you just generated to run the following command:

opensslpkcs12exportinkeykeyname.keyinapp_pem_file.pemoutapp_p12.p12

You will be prompted for a password, create one and remember or store it somewhere youll need this
when you want to sign apps with it.

BONUS CONTENT: Too many commands to remember? Download a command cheat sheet for
next time
Email Address...
UNLOCK

Thats it! I hope this helps and if youre having any trouble feel free to post a comment.

What to read next...


Whats the Difference Between Ionic and AngularJS?
Ionic 2 First Look Series: Your First Ionic 2 App Explained
How to Create Animations in Phaser with a Texture Atlas
Creating an Attractive Login Screen in Ionic with Flexbox

http://www.joshmorony.com/howtocreateaniosprovisioningprofileandp12withwindows/

3/4

2/18/2016

HowtoCreateaniOSProvisioningProfileandP12withWindows| HTML5MobileTutorials| Ionic,Phaser,SenchaTouch&PhoneGap

If you enjoy my content, consider supporting the site on Patreon :)

POS TED IN:


TA GGED WITH: IOS , OPENS S L, PROV IS IONING

0Comments

joshmorony.com

Recommend

Share

Login

SortbyBest

Startthediscussion

Bethefirsttocomment.

WHAT'STHIS?

ALSOONJOSHMORONY.COM

ASimpleGuidetoNavigationinIonic2

Ionic2:HowtoCreateaSlidingDeleteButtonforLists

7commentsamonthago

4comments3monthsago

AvatarMateusSantana Nice!Ihaveaonequestion.I'musingthepushto
redirecttheusertoanotherpageofmyapp.ThepointisthatwhenI
usethepushitautomaticallyinsertsthebackbutton,justnotaccurate
dessbackbutton,howdoIdisable?

AvatarRosalynIsitpossibletoaddswipeforbothdirections?

Ionic2:HowtoUseGoogleMaps&Geolocation[VIDEO
TUTORIAL]

HowtoConvertanIonic1ApplicationtoIonic2

20comments4monthsago

AvatarRoyalCedarHello,greattutorial.iusuallyuse
ngMessages(https://docs.angularjs.org/api...forformvalidationin
ionic1,canwestilluseitinionic2?ifyeswhereweshouldinjectthe
ngMessagesmodule?thanks

AvatarMikeSchallIhavethis"working"byusingasetTimeout.Itfeels
dirty,butthemapsalwaysload...Doangulartemplatesgetcached
AFTERtheconstructor?constructor(app:IonicApp,nav:
NavController,navParams:NavParams){this.nav=navthis.map=

Subscribe
JOSHUA

AddDisqustoyoursiteAddDisqusAdd

MORONY 2015

3comments3monthsago

Privacy

http://www.joshmorony.com/howtocreateaniosprovisioningprofileandp12withwindows/

PRIVACY POLICY

CONTACT

4/4

Вам также может понравиться