Generate CSR For Iphone App in Windows
How to Generate CSR (Certificate Signing Request) For Itunes Developer to create a Development or Production Certificate in Windows.
As you may know the Itunes developer site only gives directions on creating a CSR in MAC OS. Here are the instructions to do it in windows.
You’ll Need to Download OpenSSL Light and the Redistributables. The Redistributables usually need to be installed first but if you already have them they might not be needed. OpenSSL will let you know whether you need them when you try to install.
Visual C++ 2008 Redistributables
Now go to your command prompt, and copy/paste in the following lines. You can paste in the command prompt just by right clicking.
CD C:/openssl-win32/bin
openssl genrsa -out mykey.key 2048
keep the command prompt open and go to notepad or word really quick and paste this in.
openssl req -new -key mykey.key -out CertificateSigningRequest.certSigningRequest -subj “/emailAddress=email@server.com, CN=John, C=US”
Email Address- Use the email address tied to your Itunes Developer Admin Account
CN- Can be anything I believe. Apple gives the example of John Doe Dev Key. I personally like to avoid all the spaces in order for less command promt trouble.
Now you have your private key and your certificate. You can find them in C:/openssl-win32/bin
The two files I would copy/paste out of there are CertificateSigningRequest, and mykey. Now you can go to apple and upload the CSR and instantly your certificate is created and you can download.
I did notice that loading the CSR in appeared to get stuck sometimes. I just hit cancel and re uploaded it until it worked.
