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