missing private key in the distribution certificate on keychain

后端 未结 14 1976
时光说笑
时光说笑 2020-11-29 16:36

I have the following problem which I could not find a solution for anywhere. Basically, we have a company developer account (not enterprise) and so in order to submit our ap

相关标签:
14条回答
  • 2020-11-29 17:09

    As long as you still have access to the mac which was used to generate the original distribution certificate it's very simple.

    Just use that mac's Keychain Access application to export both the certificate and the private key. Select both using shift or command and right click to export to a .p12 file.

    Attached a screenshot to make it very clear.

    On your mac, import that .p12 file and you are good to go (just make sure you have a valid provisioning profile).

    Just choose export

    0 讨论(0)
  • 2020-11-29 17:12

    I lost hours and hours to resolve this issue, but it's fixed by just restarting MAC...

    0 讨论(0)
  • 2020-11-29 17:20

    enter image description hereAhh this is a common issue, The solution is simple:

    Who ever created the developer credentials originally needs to go to the keychain on their computer and right click on the key(s) for private and public and export the key to a file. Then you just download that file on your computer and open it, and it will be added to your keychain.

    You need to have both the private key (.pem file) and the certificate for your provisioning profiles.

    0 讨论(0)
  • 2020-11-29 17:22

    Delete the existing one from KeyChain, get and add the .p12 file to your mac from where the certificate was created.

    To get .p12 from source Mac, go to KeyChain, expand the certificate, select both and export 2 items. This will save .p12 file in your location:

    0 讨论(0)
  • 2020-11-29 17:22

    In my case, I've lost all private keys in my keychain, new ones were imported correctly, but doesn't show the private key as well. The only thing that helped was generating new CertificateSigningRequest

    0 讨论(0)
  • 2020-11-29 17:22

    For person who are afraid on re-creating AppStore distribution certificate Apple documentation says:

    Important: Re-creating your development or distribution certificates doesn’t affect apps that you’ve submitted to the App Store nor does it affect your ability to update them.

    But it affects apps for Apple Developer Enterprise ecosystem.

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