Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Profile doesn't match any valid certificate/private-key pair in the default keychain

I am developing an application for a company, they gave me the admin role so I can edit provisioning files. I am getting "Valid signing identity not found for distribution file" and "Profile doesn't match any valid certificate/private-key pair in the default keychain" error on XCode, normally I would revoke the distribution profile by creating a key chain from my mac, but the company have other applications and I can not risk revoking it because clicking revoke gives the following warning.

"Revoking this certificate may invalidate one or more Provisioning Profiles in the Program Portal. Provisioning Profiles already installed on devices will continue to run until the provisioning profile expires."

Is there a way to add a new key pair without revoking the distribution certificate, would revoking the current certificate effect other applications or are there any other solutions to this problem?

like image 224
irmu Avatar asked Jun 20 '12 14:06

irmu


2 Answers

You need the private key associated with the distribution certificate.

Request the person who created the distribution certificate for the company for the private key associated with the distribution certificate. Get him to export the private key from his keychain! Ask him to remember to select both the distribution certificate and private key together before right clicking and exporting it as .p12 Select both the distribution certificate and private key together before right clicking and exporting it as .p12

Once you open the .p12 it should pair up with the distribution certificate (the .cer file you should already have in your keychain). Your provisioning profile should work fine then!

Let me know if it works!

like image 170
clearwater82 Avatar answered Oct 28 '22 18:10

clearwater82


I came across the same issue and for some bizarre reason the method clearwater82 suggested didn't work.

But I found out this documentation on apple developer site. Might be helpful for someone else. It's just two simple steps.

FIRST STEP : Exporting Your Code Signing Assets to Your File System

SECOND STEP : Importing Your Code Signing Assets from Your File System

Hope this helps someone!

like image 3
hdsenevi Avatar answered Oct 28 '22 17:10

hdsenevi