I've created a Certificate Signing Request (CSR) file using KeyChain on an iMac and MacBook. I have successfully uploaded the CSR file to Apple for generating a Pass Type ID certificate. I can download and install the certificate to the machine the CSR file was generated from.
The problem now is I cannot export the certificate AND the private key because there is no private key associated with the certificate! Very strange considering the CSR file came from this machine.
I have followed the Apple guide and they make no mention to this potentially being a problem so there's no troubleshooting help there.
I do not know what's going wrong here so please shed light on this if you can. Thanks.
Solved
The Common Name had to match the name used in the id.
Related
Actually i developed an app using my own developer certificates and provisioning profile.
Now i need to publish it on my client developer account and my client sent his distribution certificate along with provisioning .And I have installed the certificate and then i drag the provisioning profile to xcode, and i have got error message like "Valid signing identity not found"
Please assits me.
Change code sign in project settings.
You need the private keys that were used to sign the certificate. If you don't have them
anymore you can generate a new signing request.
You need p12 file from your client to use its developer certificate and provisioning profile.When your client provide you that p12 file than double click that file and its run perfectly.
And for geting p12 file ,select the cert, and open the arrow to also select the private key and export them together as a .p12 file from Keychain Access.
There are several ways to solve this issue.
The first one is, to export your developer certificate including the associated key from your keychain and importing it on your client machine.
The other way would be (If your client machine would use another apple dev account) to go through those steps listed here Apple Certification & Provisioning
I would recommend to delete the old certificates from xcode, sometimes xcode might lag otherwise
I downloaded the Distribution provision certificate, the ios_distribution certificate and the aps_production.cer for push notifications. I installed them all in the key chain. The primary Distribution certificate does not have a private key with it. My development certificate does and has worked fine. It's similar to the linked issue but I've done those steps.
Stackoverflow link
You're missing the .p12 file which correspond to the private key associated to your certificate when you first created it in the keychain app.
You probably are working on a different Mac that the one used to generate the public/private keys. You just have to export it and then import it on the new Mac.
I need help:
My profile expired and I can't renew it - don't know why. I deleted everything, set up everything new but nothing worked so far… When I double click the certificate, it will put this one into the keychain under ceritficates, but not install the private and the public key.
Error message is: Xcode could not find a valid private-key/certificate pair for this profile in your keychain.
Does anyone know a solution?
Thanks in advance.
The certificate isn't meant to install the public/private keys; they're not included in the certificate. If you've deleted them and not kept a copy around then you'll need to generate a new pair and resubmit to Apple to generate a new certificate.
I have one big problem. I am having iphone developer account and now i have given all the controls to my developer so he has created certificate in account and install it. But he didn't know that if we want to use this information on multi system then we need to keep .p12 certificates and we have to install this certificates on another machine.
We don't have this .p12 certificate and we want to use another machine so what should i do for this things?. How can i delete current certificate from account and create another CSR and certificates for all machine?.
If anyone knows then please drops some line.
Thanks,
iPhone Dev.
If you still have the machine he created the Certificate Signing Requests (CSR) on, then you can export the private key from Keychain Access. Just find the key and export it.
If the private key is no longer available then you need to revoke the existing certificate and create a new one again. There are plenty of questions on Stackoverflow about this, e.g.
Lost Private Key For iPhone Distribution Certificate. What could be solutions?
I've been able to generate and use my development cert & provision for some time. I did have some problems after upgrading xcode, in that the login certs where getting trashed/removed, but I fixed that.
I'm trying to create my distribution cert & provision. I've noticed that the distribution cert doesn't have a private key - you can't expand the cert when clicking on it. Not sure if that's an issue or not. When I drag the distribution profile into Organizer, it comes up with the error message, "A valid signing identity matching this profile could not be found in your keychain".
I've tried putting the distribution cert in both login and system. I also DO have the WWDRCA cert installed.
Any ideas - A real pain ...
It sounds like you do not have the keys corresponding to the certificates in your keychain. If you posted screenshots of your keychain entries and your code signing configuration, it would be easier to see exactly what is going on.
Also make sure you have the Apple certificate in your keychain.
Check if you have still got your private key on login keychain. That's what happens to me. I encountered this same problem when I copied my project from iMac to Macbook Pro. I found out I didn't have my private key installed on the Macbook. So I exported my private key, copied and installed it to the Macbook, and it fixed it!
I've documented the information here: http://www.creatistblog.com/2009/09/iphone-developer-provisioning.html