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

Viewed 47626

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!

4 Answers

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
Related