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 computers where this cert is not generated. As I see i should use .p12
But how can I install .p12 ?
I’ve tried to use
security add-certificates "/Users/$NAME/Library/Keychains/login.keychain" "$CERT_PATH"
But result same as previous command. Can’t install .p12
Please help.
Thanks,
It looks like you can do this using the import command. I’ve managed to do the following:
I found I had to unlock the keychain, otherwise it prompted for the keychain password.
Hope this helps.