On Mon, Apr 23, 2007, Janet N wrote:
> Hi,
>
> I'm using openssl pkcs12 to export the usercert and userkey PEM files out of
> pkcs12. I don't want the openssl pkcs12 to prompt the user for the import
> and pem pass phrase. What are the password flags to be used?
>
> I got an invalid password when I do the following:
>
> -bash-3.1$ openssl pkcs12 -in janet.p12 -nocerts -out userkey.pem -passin
> test123
> Invalid password argument "test123"
> Error getting passwords
>
As mentioned in the fine manual:
-passin pass:test123
but that will prompt for the private key password so you also need:
-passout pass:whatever
Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]