You need to specify a cipher for encrypting your private key.  Something
like:

openssl rsa -in nopassword.key -des3 -out password.key

You will be prompted for a passphrase.

-des3 could be replaced by -aes128, -aes192, or -aes256 if you want a
stronger cipher for encryption.

Bill

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marten Lehmann
Sent: September 21, 2007 2:55 PM
To: openssl-users@openssl.org
Subject: changing password on private key rsa

Hello,

according to the rsa documentation, this command should ask for a new 
password (no password set in the file before):

openssl rsa -in nopassword.key -passout stdin -out password.key

I'm asked for a password, but the files are identical, password.key has 
no password set. What is going wrong?

Regards
Marten
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to