Closed mooreandrew closed 7 years ago
I managed to ket the certificate loaded to the system.keychain instead using the following command (with am empty password):
sudo security import ~/Certificates.p12 -k '/Library/Keychains/System.keychain' -P '' -A
I'm trying to import a p12 certificate. The instructions I am following say to unlock the keychain and then import the certificate.
I'm running
security -v unlock-keychain -p "vagrant" "/Users/vagrant/Library/Keychains/login.keychain"
And get back no response (doing $? gives 0 even if I type gibberish as the password).
And then running the following gives me an error:
security import Certificates.p12 -k "/Users/vagrant/Library/Keychains/login.keychain" -P 'vagrant' -A
Error: security: SecKeychainItemImport: User interaction is not allowed.
I'm trying to eliminate the problem, but is the password for the keychain "vagrant" seeing as that is the user account. Also has anyone any experience of importing a p12 certificate to the login.keychain and can tell me what is wrong.