I'm trying to export the keychains in Terminal. This is the code I used
security> export -k SystemCACertificates.keychain -t all -f openssl -o goodone.txt
And this is the error I got security: illegal option -- k. Can anyone fix it? :)
I'm trying to export the keychains in Terminal. This is the code I used
security> export -k SystemCACertificates.keychain -t all -f openssl -o goodone.txt
And this is the error I got security: illegal option -- k. Can anyone fix it? :)
You probably copied/pasted the example listed in the man page, which actually is supposed to show how security can be run interactively. To fix, you can do one of the following:
security -i in Terminal and then just entering export -k SystemCACertificates.keychain -t all -f openssl -o goodone.txt when you get the security> promptsecurity export -k SystemCACertificates.keychain -t all -f openssl -o goodone.txt from the shell
security> export -k SystemCACertificates.keychainAnd got this errorsecurity: SecKeychainItemExport: One or more parameters passed to a function were not valid. export: returned 1– mrghostmods Dec 04 '15 at 19:35