Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-25-2008, 09:26 AM   #1 (permalink)
New Member
 
Join Date: Sep 2008
Posts: 5
Default Signing identiy and keychain

Hi,

I've already spent 5 hours to solve this problem but I can't find the solution.

I've made what it has to be done with certificates, provisionning profile but it does'nt work.

When I look in the Organizer, in the Provisionning Profile section, my provisionning profile has an alert and this message :

"A signing identity matching this profile could not be found in your keychain"


Does anybody can help me?


Mathieu
matt55 is offline   Reply With Quote
Old 11-26-2008, 04:16 AM   #2 (permalink)
New Member
 
Join Date: Sep 2008
Posts: 5
Default

I always have the problem

I don't find....
matt55 is offline   Reply With Quote
Old 11-26-2008, 05:11 AM   #3 (permalink)
New Member
 
Join Date: Sep 2008
Posts: 5
Default

I have this message

<matching certificate identity with private key not found in login keychain>
matt55 is offline   Reply With Quote
Old 11-26-2008, 10:03 AM   #4 (permalink)
New Member
 
Join Date: Nov 2008
Posts: 12
Default

I just started seeing this problem this morning after installing another iPhone Developer cert (one for myself that I've had and now another for the company I work for). I'm wondering if it is trying to find the cert by name (which is the same for each, since both dev program registrations were under the same name) and is finding the wrong one. Unfortunately I don't have a fix yet...
toddkrabach is offline   Reply With Quote
Old 11-26-2008, 10:08 AM   #5 (permalink)
New Member
 
Join Date: Sep 2008
Posts: 5
Default

I'm in the same situation than you.
I'm going to try to export the private key from the other computer.

Cf. ADC
It is critical that you save your private key somewhere safe in the event that you need to develop on multiple computers or decide to reinstall your system OS. Without your private key, you will be unable to sign binaries in Xcode and test your application on any Apple device. When a CSR is generated, the Keychain Access application creates a private key on your login keychain. This private key is tied to your user account and cannot be reproduced if lost due to an OS reinstall. If you plan to do development and testing on multiple systems, you will need to import your private key onto all of the systems you’ll be doing work on.
matt55 is offline   Reply With Quote
Old 11-26-2008, 10:17 AM   #6 (permalink)
New Member
 
Join Date: Nov 2008
Posts: 12
Default

So far the only thing I can find is to backup and remove one of the developer certs at a time (and then I'll have to switch between them when I change projects). I'd love to know if you find any other options.
toddkrabach is offline   Reply With Quote
Old 11-27-2008, 09:28 AM   #7 (permalink)
Registered Member
 
Join Date: Jun 2008
Location: London
Posts: 38
Default

Are you using SDK 2.2 or earlier?

I had a similar sort of problem that was cleared up by going to 2.2. When I tried to compile XCode gave an error indicating that I an ambiguous cert.

Do a search for files called 'login.keychains' (in User/X/Library/Keychains on my machine where X is my user name)

and 'system.keychains' (in /X/Library/KeyChains).

You can see the contents by opening with KeyChain access. I found I had a duplicate developer cert in there and when I removed it everything started to work. Its only when I went to 2.2 that XCode identified this.

Might not be related but certainly worth checking out.

Certificates and code signing seems to be much better in 2.2 atleast in my case.

G
GeeElle is offline   Reply With Quote
Old 11-27-2008, 10:57 AM   #8 (permalink)
New Member
 
Join Date: Nov 2008
Posts: 12
Default

I'm using SDK 2.2. This problem was introduced when I installed a 2nd developer cert, but they are different. One is for my personal enrollment, the other is for my enrollment under the company I work for, so each cert is needed for a different reason, but they are generated with the same name. My assumption at this point is that this is the cause and the tools don't account for this situation. I have an email into Apple to see if they have any resolution to this, or if I just need to remove the one that I'm not currently using in order to make it work each time I switch between using different certs.
toddkrabach is offline   Reply With Quote
Old 01-08-2009, 01:42 PM   #9 (permalink)
Registered Member
 
Join Date: Sep 2008
Posts: 169
Default

Any luck? Got the same problem...
Danneman is offline   Reply With Quote
Old 01-08-2009, 01:45 PM   #10 (permalink)
New Member
 
Join Date: Nov 2008
Posts: 12
Default

Nothing yet - currently sitting in the iPhone dev program support queue. The best work-around so far is to only have 1 dev cert installed at a time.
toddkrabach is offline   Reply With Quote
Old 01-08-2009, 03:14 PM   #11 (permalink)
Registered Member
 
Join Date: Sep 2008
Posts: 169
Default

Ok, good luck! And dont forget to report back to us
Danneman is offline   Reply With Quote
Old 01-21-2009, 01:28 PM   #12 (permalink)
New Member
 
Join Date: Dec 2008
Posts: 9
Default First time attempt to install app into iPhone...

and ran into the same issue. Not sure how to move forward!
gtur is offline   Reply With Quote
Old 01-21-2009, 01:33 PM   #13 (permalink)
New Member
 
Join Date: Nov 2008
Posts: 12
Default

gtur - do you have 2 (different or the same) developer certs in your keychain? if they are the same, remove one of them (make sure you have the public and private key in the one you keep - backup anything you remove before removing it or you'll have to generate a new one and start that process over). if they are different (like the case that I've described above), you will need to remove the one that you are not trying to use and switch back when you want to use the other - that is the bug that I've tried to contact Apple about; with no success so far.
toddkrabach is offline   Reply With Quote
Old 01-23-2009, 12:45 PM   #14 (permalink)
New Member
 
Join Date: Jan 2009
Posts: 3
Default

@toddkrabach I have the same problem - did Apple respond to your mail?
dbloete is offline   Reply With Quote
Old 01-23-2009, 12:50 PM   #15 (permalink)
New Member
 
Join Date: Nov 2008
Posts: 12
Default

nothing yet - I will update this thread for sure if I find anything new
toddkrabach is offline   Reply With Quote
Old 01-24-2009, 01:57 AM   #16 (permalink)
New Member
 
Join Date: Jan 2009
Posts: 1
Default

Any luck with this? I'm stuck too.
a_band is offline   Reply With Quote
Old 01-24-2009, 10:30 AM   #17 (permalink)
New Member
 
Join Date: Nov 2008
Posts: 12
Default

"nothing yet - I will update this thread for sure if I find anything new "
toddkrabach is offline   Reply With Quote
Old 01-30-2009, 11:18 AM   #18 (permalink)
New Member
 
Join Date: Nov 2008
Posts: 12
Default

FYI, I was hoping from the release notes of the 2.2.1 sdk that this was fixed in xcode as well, but it is still broken. back to manually adding/removing certs to switch between profiles for now...
toddkrabach is offline   Reply With Quote
Old 01-31-2009, 07:59 PM   #19 (permalink)
New Member
 
Join Date: Jan 2009
Posts: 1
Default

Attention everyone! I had the same issue but I resolved it using 2 steps. I don't know why this worked, but its what helped me:

1. The name of my certificate versus the name of my key were slightly different (i used nickname for my key). I changed the key (both private and public) to the same name as on my certificate. For example if your certificate is Jonnathan Lastname, make sure your key is Jonnathan Lastname Dev Key (***don't use Jon Lastname Dev Key***)

2. I downloaded the latest version of the iPhone SDK. Quit Xcode, and installed it. After it has been installed, I opened Xcode, went to organizer and pluged in my itouch. It Worked!

This helped me solve the "A signing identity matching this profile could not be found in your keychain" problem. If you haven't done this yet, try it.
vlad12 is offline   Reply With Quote
Old 02-01-2009, 12:13 AM   #20 (permalink)
New Member
 
Join Date: Nov 2008
Posts: 12
Default

vlad12 - thanks for the feedback. Yes, that is the common solution for this error, but not for the case when the name matches but with two certs (work and personal, for example, as in my case). In this case the name does match, but there are two certs that match the same (correct) name, and Xcode can't determine which to use when attempting to sign (also showing the error in organizer) unless one of them (either one) is removed from the system. If anyone has solutions for this specific scenario, I would love to hear it. Thanks.
toddkrabach is offline   Reply With Quote
Old 02-26-2009, 12:10 PM   #21 (permalink)
Biosopher
 
Join Date: Jan 2009
Posts: 5
Default

In my case, I needed to place my updated iPhone dev certificate into my Keychain (and remove my outdated one). Once that was done, the error disappeared.

Here's the Apple link with more info (must be logged in as an iPhone dev to see it): iPhone Dev Center
acopernicus is offline   Reply With Quote
Old 03-31-2009, 05:35 PM   #22 (permalink)
New Member
 
Join Date: Mar 2009
Posts: 1
Default I got it working!

Hey all.

Just wanted to post and let you know that I had exactly this problem myself recently, and after much messing around and head-scratching, managed to figure it out.

My problem was that I was exporting my private key, but the self-signed certificate I have used as the root certificate to create and sign my private key from was not being exported. So, I assume, when I imported my private key into my other development machine, the private key could not be verified, and therefore failed to work in XCode Organiser.

Exporting the self-signed root certificate as well as the private key fixed it for me.

I hope that helps someone else!
CraigP is offline   Reply With Quote
Old 04-01-2009, 12:55 PM   #23 (permalink)
New Member
 
Join Date: Jan 2009
Posts: 3
Default

Quote:
Originally Posted by CraigP View Post
Exporting the self-signed root certificate as well as the private key fixed it for me.
Maybe I'm missing something, but it seems like that doesn't work for me... I tried it on both machines, exporting the certificate and key from both sides (private and work).

Can anyone else confirm that CraigP's approach works for them?
dbloete is offline   Reply With Quote
Old 04-01-2009, 01:21 PM   #24 (permalink)
New Member
 
Join Date: Nov 2008
Posts: 12
Default

It depends on the problem that you're trying to solve. The error message at the top of this thread has multiple scenarios that can lead to it. My case (which matt55 has confirmed is the same as his) involves 2 different certificates causing a name ambiguity that Xcode can't handle. This situation is not resolved by any of the suggestions in this thread and is still pending. The only "solution" that I've been able to find so far is to back up your certificates (private and public for each account) and then only have the one that you want to compile against in your keychain. When you want to switch, delete the cert from the keychain and then install the other one. This is a bit of a pain, but the only solution that I have at this point (this could be scripted with /usr/bin/security, but given the context and the passwords involved, etc, it is probably easier to do it in the Keychain Access GUI).
toddkrabach is offline   Reply With Quote
Old 04-01-2009, 01:30 PM   #25 (permalink)
New Member
 
Join Date: Jan 2009
Posts: 3
Default

@toddkrabach This is exactly what I always end up doing
dbloete is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 157,862
Threads: 88,915
Posts: 379,298
Top Poster: BrianSlick (7,072)
Welcome to our newest member, Pablo70
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:58 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0