Can't find private key for Apple Development Push Services

后端 未结 13 1036
忘了有多久
忘了有多久 2021-01-31 01:23

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

相关标签:
13条回答
  • 2021-01-31 02:03

    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!

    0 讨论(0)
  • 2021-01-31 02:07

    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.

    0 讨论(0)
  • 2021-01-31 02:09

    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:

    1. Quit keychain access.
    2. right-click the .cer file (e.g. aps_production.cer)
    3. Select "Open With > Keychain access (default)"

    ... and voila, now it shows up with the private key. Which is rather odd, since it was opening Keychain access anyways.

    0 讨论(0)
  • 2021-01-31 02:09

    Goto the keychain access and follow steps as given below...

    enter image description here

    0 讨论(0)
  • 2021-01-31 02:11

    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.

    0 讨论(0)
  • 2021-01-31 02:16

    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.

    0 讨论(0)
提交回复
热议问题