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!
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.
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.
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'.
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
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.
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 :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With