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

4

14

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!

Gombroon answered 15/7, 2011 at 3:28 Comment(0)
B
26

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'.

Bromeosin answered 15/7, 2011 at 3:31 Comment(2)
What if login is in bold?Sirree
"Make Keychain Default" is not an option in the context menu for me...Hydrokinetic
S
6

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
Stomatitis answered 14/5, 2021 at 15:58 Comment(1)
This saved me after installing enterprise profiles which messed up keychains!Blumenfeld
F
4

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.

Finance answered 3/9, 2013 at 16:4 Comment(2)
There is no Keychain First Aid in Mac OS Sierra. What to do?Sponson
On Catalina OS: You can blow away your default keychain and create a new one by clicking on Keychain Access>Preferences>[check Reset My Default Keychain]Solvency
M
2

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 :)

Monarski answered 2/12, 2014 at 18:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.