Add/import certificate with password via command line Mac OS X

后端 未结 1 1011
借酒劲吻你
借酒劲吻你 2020-12-30 05:48

I\'m trying to import a .pfx certificate via command line. This certificate is secured by a password. Is there a way to do this in terminal? I\'m running OS X 10.8.

1条回答
  •  礼貌的吻别
    2020-12-30 06:39

    Got it!

    The password starts with a dollar and I didn't escape it with a \.

    So let's say the password is $tup1dP@ssw0rd the command has to be:

    security import certificate.pfx -k ~/Library/Keychains/login.keychain -P \$tup1dP@ssw0rd
    

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