install .p12 or .cer in console macos

前端 未结 3 650
悲哀的现实
悲哀的现实 2021-01-30 12:03

I\'ve try install .p12 cert to my macos use command line.

I can install .cer

sudo certtool I Certificates.p12 d

but it doesn\'t work on

3条回答
  •  一生所求
    2021-01-30 12:34

    This will import the bundle to the default keychain:

    security import ./bundle.p12 -P secretPassword
    

    secretPassword is the p12 file encryption password.

    While the answer by Stuart should work, it is not required to create another keychain first.

提交回复
热议问题