Mac代码签名:从终端绕过钥匙串访问私钥提示 [英] Mac Code Signing: Bypass the Keychain Access private key prompt from Terminal

查看:401
本文介绍了Mac代码签名:从终端绕过钥匙串访问私钥提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Mac OS X Mountain Lion中使用一个应用程序,该应用程序需要在钥匙串访问"中访问我的某些证书​​的私钥.由于此应用程序将在服务器上运行,因此我需要避免弹出对话框,该对话框要求用户允许该应用程序访问私钥:

I'm working on an app in Mac OS X Mountain Lion that needs to access the private key of some of my certificates within the Keychain Access. Since this app is going to run on a server, I need to avoid the pop up dialog that requires the user to allow the app to access the private key:

我知道,单击始终允许"对话框将不再为该私钥弹出对话框,问题是我将使用不同的密钥.

I know that by clicking "Always Allow" the dialog won't popup anymore for that private key, the problem is that I will be working with different keys.

谢谢,

Mikywan.

推荐答案

我发现解决此问题的唯一方法是在钥匙串访问"中将私钥"设置为允许所有应用程序访问此项目".

The only way I found to solve this is by setting up the Private Key in the Keychain Access to "Allow all applications to access this item".

当您将证书导入到钥匙串中时,可以在终端上进行配置.

You can configure this from the Terminal when you import the certificate into your Keychain.

导入命令:import inputfile [-k keychain] [-t type] [-f format] [-w] [-P passphrase] [options...]

要将访问控制设置为允许所有应用程序访问此项目",只需添加标志"-A" .

您可以始终检查 Apple的安全性

You can check always Apple's manual on security

希望这会有所帮助.

这篇关于Mac代码签名:从终端绕过钥匙串访问私钥提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆