Discussion Forums  >  Xcode, Errors, Installing, Configuring

Replies: 22    Views: 1047

MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
01/31/14 03:48 PM (11 years ago)

Accidentally deleted keys in my keychain

hey all, So I accidently deleted my keys in my keychain, and suddenly I can't Archive anything (which seems obvious). However, I redownloaded my keys, and still it continues to say: Profile doesn't match any valid certificate/private key pair in your keychain. Anyone know how to fix? Thanks in advance!
 
Kingston
Aspiring developer
Profile
Posts: 118
Reg: Feb 01, 2013
New York
1,180
like
01/31/14 03:52 PM (11 years ago)
Hi MM2000, Your Xcode Vesrion?
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
01/31/14 03:59 PM (11 years ago)
xcode v4
 
Kingston
Aspiring developer
Profile
Posts: 118
Reg: Feb 01, 2013
New York
1,180
like
01/31/14 04:01 PM (11 years ago)
Hi, the issue is due to two times the private keys and public keys are added in the keychain with the same name. Remove the both and try from first...
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
01/31/14 04:06 PM (11 years ago)
Should I just remove all my keys and then redownload them from the certificate center?
 
Kingston
Aspiring developer
Profile
Posts: 118
Reg: Feb 01, 2013
New York
1,180
like
01/31/14 04:10 PM (11 years ago)
Yes probably your keychain should not contain any of the old datas of that particular app only. The new CSR file should be created in Apple developer and you should follow the regular steps. New mobile provisioning should be installed and the Bundle identifier should be given correctly..
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
01/31/14 04:12 PM (11 years ago)
Will I still be able to update my current app?
 
Kingston
Aspiring developer
Profile
Posts: 118
Reg: Feb 01, 2013
New York
1,180
like
01/31/14 04:17 PM (11 years ago)
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/31/14 05:22 PM (11 years ago)
Yeah, if you delete those keys, you have to create new ones. No biggie. But like Kingston said; every single profile cert is tied to those keys, and you have to recreate those too. Cheers! -- Smug
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/31/14 05:52 PM (11 years ago)
It's a bit of a pain - I went through this recently when I got a new computer. The good thing is, once it's done, it's done and life goes back to easy street. I got really worried when I first saw this thread, though. I thought "uh oh, someone deleted their Android keystore!" That would be bad...
 
Kingston
Aspiring developer
Profile
Posts: 118
Reg: Feb 01, 2013
New York
1,180
like
02/01/14 02:04 AM (11 years ago)
@MM2000 Have you got fixed it?
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
02/04/14 03:07 PM (11 years ago)
Have yet to fix it, still working. Finally able to take a crack at it today. How do I recreate the keys?
 
Kingston
Aspiring developer
Profile
Posts: 118
Reg: Feb 01, 2013
New York
1,180
like
02/04/14 03:10 PM (11 years ago)
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
02/04/14 03:12 PM (11 years ago)
I don't want to bother you with that. Is there a step by step guide on how to recreate the keys I deleted?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/04/14 03:16 PM (11 years ago)
 
Kingston
Aspiring developer
Profile
Posts: 118
Reg: Feb 01, 2013
New York
1,180
like
02/04/14 03:18 PM (11 years ago)
Just go the certificates created by you using your apple developer account. Then goto the certificates created by you then there will be an option Revoke . Just click Revoke and upload the new certificates and continue the regular steps
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
02/04/14 03:22 PM (11 years ago)
@kingston, What happens when I need to update an older app I have?
 
Kingston
Aspiring developer
Profile
Posts: 118
Reg: Feb 01, 2013
New York
1,180
like
02/04/14 03:26 PM (11 years ago)
Your older app is currently live or yet to move to live
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
02/04/14 03:27 PM (11 years ago)
Yes older apps are already on the app store. I don't need to update them at the moment, but I might need to in the future...
 
Kingston
Aspiring developer
Profile
Posts: 118
Reg: Feb 01, 2013
New York
1,180
like
02/04/14 03:30 PM (11 years ago)
Ok. nothing will happen if you revoke. Your app functionality won't get affect if you revoke. Just your updating an new certificates for that particular app. Using your apple developer account your handling how many account's
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
02/04/14 03:46 PM (11 years ago)
So i just created a new certificate, and even changed my bundle ID (creating a new certificate for that bundle id). Yet still am getting "Profile doesn't match any valid certificate /private key pair in your key chain" I believe it's because i'm missing my private and public key (as i deleted them like an idiot). How do I regenerate these keys in my keychain?
 
Kingston
Aspiring developer
Profile
Posts: 118
Reg: Feb 01, 2013
New York
1,180
like
02/04/14 03:52 PM (11 years ago)
Bundle id once created for an app cant be changed so there is no use of creating it. I just told to revoke and add the new certificates to the particular app your using. Remove the private and public keys allready added in the keychain and create the new one and upload the existing Bundle id present in Apple Developer Refer, https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html https://developer.apple.com/library/mac/documentation/IDEs/Conceptual/AppDistributionGuide/Troubleshooting/Troubleshooting.html
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
02/04/14 04:20 PM (11 years ago)
I've done this. I have the certificates, but my private key and public key in my keychain are gone, which is causing the problem. i can't see to find anything online on creating the private/public keys
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.