Unlocking Local Items Osx Keychain

I am trying to unlock the local items keychain in OSX programmatically.

I will unblock login.keychain using / usr / bin / security tool. In some scenarios, unlocking login.keychain programmatically unlocks local items indirectly. In other cases, local items are not unlocked and the user is given multiple prompts to unlock it. I need to know how to access local elements directly, in my C program.

Unfortunately, running the list of security keys in / Library / Keychains / doesn't even list the Local Items keychain. Why is this?

Is there a way to access and modify local elements directly?

Platform: Maverick and Yosemite

Update: I have now also tried to unblock the login using the Security API (SecKeychainUnlock), the problem with locked local items still persists.

+3


source to share


1 answer


The local item is not a keychain file, it is a db file called "keychain-2.db". You will see it in a subfolder under ~ / Library / Keychain.



Check this link: https://macmule.com/2014/03/30/the-local-items-keychain-in-mavericks/

+2


source







All Articles