Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OS X keychain not visible to Keychain Access.app in Mavericks

I've set up a keychain as follows:

sudo /usr/bin/security create-keychain -p 'temporaryPassword' MyKeychain.keychain

The keychain is present and working as shown by:

/usr/bin/security show-keychain-info MyKeychain.keychain
Keychain "MyKeychain.keychain" lock-on-sleep timeout=300s

The permissions in ~/Library/Keychains are all consistent.

Why does Keychain Access.app not show MyKeychain in its Keychains panel?

like image 204
NedS Avatar asked Dec 05 '13 05:12

NedS


People also ask

Why can't I find keychain on my Mac?

On your Mac, choose Apple menu  > System Preferences, then click Apple ID. Click iCloud in the sidebar, then select Keychain. If you're using macOS Mojave or earlier, click iCloud, then click Options next to Keychain.

How do I find the OSX keychain?

In the Keychain Access app on your Mac, if you don't see a list of keychains, choose Window > Keychain Viewer or press Command-1. Select the keychain that you want to view. To see more information about an item, either double-click it or select it and click the Info button in the toolbar.

How do I allow Keychain Access on my Mac?

Open System Preferences, click the icon for Apple ID, and click the checkbox for Keychain. Then when you browse to a password-protected website, iCloud Keychain will ask if you want to save the password. Click Save Password and it'll be securely stored in your Keychain.


1 Answers

Because MyKeychain is not in the keychain search list.

Even though the man page for security says that create-keychain adds the created keychain to the search list, it does not actually do that in 10.9.0. This seems like a bug to me, as it works as described in the man page in 10.8.5. Try this:

security create-keychain -p 'temporaryPassword' MyKeychain.keychain
security list-keychains

If you don't see MyKeychain.keychain in the resulting list, you need to add it. For example, let's say you got this list back from security list-keychains:

/Users/fred/Library/Keychains/login.keychain
/Library/Keychains/System.keychain

You can add MyKeychain to that list with this command:

security list-keychains -d user -s login.keychain MyKeychain.keychain

The instant you do that, you'll see MyKeychain show up in the "Keychains" list in Keychain Access..

like image 153
WWG Avatar answered Sep 27 '22 17:09

WWG