OS X Certificate import command line
If you like to import a certificate over the command line:
security import yourname.p12 -k ~/Library/Keychains/login.keychain -P password
Linux, BSD, Unix and Security hints
OS X Certificate import command line
If you like to import a certificate over the command line:
security import yourname.p12 -k ~/Library/Keychains/login.keychain -P password
Client Certificate generate
To generate a client certificate:
openssl req -newkey rsa:4096 -keyout yourname.key -out yourname.csr
If you get the crt file, you need to put all together in a p12 file:
openssl pkcs12 -export -clcerts -in yourname.crt -inkey yourname.key -out yourname.p12