I\'ve consulted many sources out there and still can\'t figure this out.
http://code.google.com/p/apns-php/wiki/CertificateCreation
Basically after I download th
Delete the certificate that has no private key. Open Login in Keychain, then drag the file from Finder to Login and your certificate now has a private key!
Yet another answer to this...
After you create your CSR, before actually uploading it to the Apple site, you can go look within Keychain Access under the logins -> keys and see that you already have new public and private keys with the same name as you entered in your new CSR's CommonName.
So when you upload the CSR to the Apple, then download the certificate, then double-click the certificate, Keychain access is just matching up that downloaded certificate with the public key that was already in your Keychain Access list and it attaches the private key.
So if you are not able to get the private key after all of this, try recreate your CSR.
The strange thing to me is that, I had read that you could use the same CSR each time you recreate your certificate, but for some reason that is not working for me. Perhaps because the old expired certificate that I was replacing was no longer in my Keychain Access list and so therefore there was no public/private key pair that matched the newly generated certificate.
I had the exact same problem. Double-clicking the .cer file put the certificate in the Keychain, but did not show any private key (nor was the entry expandable).
I fixed the issue with these steps:
... and voila, now it shows up with the private key. Which is rather odd, since it was opening Keychain access anyways.
Goto the keychain access and follow steps as given below...
on the machine you are trying to access this cert, do you have the key with which you signed the Certificate Signing Request (based on which apple created that certificate for you)?
You should ask the person who created that certificate. Thats probably the only way you can get the private key.
Delete the certificate that has no private key. Open Login in Keychain
Drag this two certificate in keychain
Woo you. have private key In your keychain.