"openssl -nodes" always asks for a password
I'm using:
openssl pkcs12 -export -nodes -CAfile ca-cert.ca -in PEM.pem -out $YourPKCSFile"_no_password"
in a shell script to generate a P12 file that can be imported into the keychain for use in macOS Server. The script needs to be able to run unattended.
Problem is, every time I invoke the script from the shell (e.g., "$ ./InstallCerts.sh"), I get asked for a password for the export.
Enter Export Password:
Verifying - Enter Export Password:
Not what I want.
According to EVERYTHING on the interwebs, the -nodes flag should prevent openssl from asking for a password. Is the implementation in macOS broken? Or am I doing something wrong?
Thanks,
Bill