Mac Code Signing: Bypass the Keychain Access private key prompt from Terminal

前端 未结 1 2080
情话喂你
情话喂你 2021-02-19 20:58

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

1条回答
  •  走了就别回头了
    2021-02-19 21:30

    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".

    Private Key Properties: Access Control

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

    Import command: import inputfile [-k keychain] [-t type] [-f format] [-w] [-P passphrase] [options...]

    To set the access control to "Allow all applications to access this item", just add the flag "-A".

    You can check always Apple's manual on security

    Hope this helps.

    0 讨论(0)
提交回复
热议问题