Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mac OS X Keychain Access: "A default keychain could not be found" error

I am trying to sign an iPhone app for publishing, so I am following the instructions to do so. Anyhow, when creating my Certificate Signing Request I get this error from Keychain Access: "A default keychain could not be found"

I found no help on Google concerning this issue - can anybody help?

Thanks!

like image 978
Pizzur22 Avatar asked Jul 15 '11 03:07

Pizzur22


People also ask

How do I reset my default keychain on Mac?

Resetting default keychains requires you to log out and log back in to your Mac to complete the process. In the Keychain Access app on your Mac, choose Keychain Access > Preferences. Click Reset Default Keychains.

What does it mean when it says there is keychain login error on your Mac?

Your keychain may be locked automatically if your computer has been inactive for a period of time or your user password and keychain password are out of sync.


4 Answers

Sounds like you're missing your login.keychain. Either that, or you somehow un-set it as default. Look at your Keychains list in Keychain Access (View->Show Keychains). Do you have "login"? And is it bold? If either of those answers was "no", that's your problem. If you don't have a login keychain, go ahead and create one (File->New Keychain). If you don't have a bolded keychain, right-click your "login" keychain and there should be a menu item 'Make Keychain "login" Default'.

like image 75
Lily Ballard Avatar answered Oct 08 '22 06:10

Lily Ballard


You can use security command in mac

security list-keychains   # print all the keychains 
security default-keychain -s "<printed keychain using above command>"  
eg: security default-keychain "Users/myname/Library/Keychain/login-db"

I had a problem with I create another keychain as the default keychain I wanted to delete that keychain and make the login keychain as default keychain. You can also use

security delete-keychain "keychain name"  # to delete the keychain
like image 41
shubham rasal Avatar answered Oct 08 '22 05:10

shubham rasal


Not allowed to create certificate:

Open Keychain and goto Keychain Access -> 'KeyChain First Aid'. Apply check on REPAIR radio button and enter Admin password in password field and click on START button. System will repair the keychain and then create certificate.

These steps worked for me.

like image 4
Sohail Avatar answered Oct 08 '22 05:10

Sohail


You need to go into the Lib>Keychains and delete the contents in the folder.

Delete References. Restart, and you should be a happy camper :)

like image 2
Greg Wiley Avatar answered Oct 08 '22 04:10

Greg Wiley