我正在尝试以编程方式解锁 OSX 中的 Local Items 钥匙串(keychain)。
我正在使用/usr/bin/security 工具解锁 login.keychain。在某些情况下,以编程方式解锁 login.keychain 会间接解锁 Local Items。其他时候,Local Items 未解锁,用户会收到多个解锁提示。我需要知道如何在我的 C 程序中直接访问本地项目。
不幸的是,在/Library/Keychains/中运行 security list-keychain 甚至不会列出 Local Items 钥匙串(keychain)。这是为什么?
有什么方法可以直接访问和修改本地项目吗?
平台:Maverick 和 Yosemite
更新:我现在也尝试使用安全 API (SecKeychainUnlock) 解锁登录钥匙串(keychain),锁定本地项目的问题仍然存在。
最佳答案
本地项不是钥匙串(keychain)文件,它是名为“keychain-2.db”的数据库文件。您会在 ~/Library/Keychain 的子文件夹中看到它。
检查此链接:https://macmule.com/2014/03/30/the-local-items-keychain-in-mavericks/
关于macos - 解锁 Osx Local Items 钥匙串(keychain),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27710360/