macos - 如何在 mac 中通过 cli 设置默认钥匙串(keychain)?

标签 macos security command-line-interface keychain

我在删除默认钥匙串(keychain)后收到此错误,希望 MacOS 会选择可用的钥匙串(keychain)作为默认值,但它没有。

security: cert import failed: A default keychain could not be found. security: problem decoding

我想使用 cli 设置默认钥匙串(keychain)

最佳答案

security default-keychain -s "/Users/ted/Library/Keychains/login.keychain-db"

找到它

man security

关于macos - 如何在 mac 中通过 cli 设置默认钥匙串(keychain)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66367261/

相关文章:

ios - 在 iOS 应用程序上存储 secretAccessKey 的安全方法

node.js - 在前台启动 redis 并使用一个命令并行但串行地启动 Node 服务器

macos - 使用 Metal 绘制位图

windows - 是否有 "free"方法可以在不同操作系统上进行测试?

objective-c - 是否有任何函数可以检索与 inode 关联的路径?

node.js - Elastic Beanstalk CLI 错误 : This directory has not been set up with the EB CLI You must first run "eb init"

php - 每 5 分钟执行一次 PHP cron,但将函数置于 sleep 状态以在 15 分钟后运行

xcode - 在 Xcode 上创建新的基于文档的 Cocoa 应用程序的奇怪事情

ios - SecKeyDecrypt 在 iOS 中并不总是使用 RSA 解密

java - 如何获取网络客户端