missing private key in the distribution certificate on keychain
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 app, I requested from our team lead to send me the distribution certificate and create and send me a distribution provisioning profile.
With the developer profile everything works good, but when I installed the cert and the prov profile, I did not see the diet profile on xcode, and nor do i have a private key under the dist cert in keychain.
Does anyone know how to solve this? I read in diff places that I will need to revoke the certificate and create a new one, but I cant really do that since we have a bunch of apps in the company and I cant revoke it for everyone.
Thanks for the help!!!
Ahh 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.
As long as you still have access to the mac which was used to generate the original distribution certificate it's a 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).
To add on to others' answers, if you don't have access to that private key anymore it's fairly simple to get back up and running:
上一篇: 我如何将私钥添加到分发证书?
下一篇: 丢失钥匙串上的分配证书中的私钥