I need to pass the password via the command line during the exporting in a bash script.
IBM has this on their website
openssl pkcs12 -export -in "$pem" -inkey "$key" -out "$pfx" -passout pass:pkcs12 "$pfxpass";
The above does not work for me.
The command below works but then you are prompted to enter and reenter a password.
openssl pkcs12 -export -in "$pem" -inkey "$key" -out "$pfx";
How can this be scripted?