Bug 818 - ssh-keygen Bad passphrase error
Summary: ssh-keygen Bad passphrase error
Status: CLOSED INVALID
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh-keygen (show other bugs)
Version: 3.8p1
Hardware: PPC Linux
: P2 major
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-24 13:31 AEDT by Sandino Araico Sánchez
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sandino Araico Sánchez 2004-03-24 13:31:29 AEDT
When I try to change my key passphrase I get a Bad passphrase error.

If I generate a new key with empty passphrase I receive no error, but if I
generate a new key with a passphrase I get the Bad passphrase error.

[sandino@ingrata sandino] ssh-keygen -f .ssh/id_dsa.test -p
Key has comment '.ssh/id_dsa.test'
Enter new passphrase (empty for no passphrase): eaeaea
Enter same passphrase again: eaeaea
Your identification has been saved with the new passphrase.
[sandino@ingrata sandino] ssh-keygen -f .ssh/id_dsa.test -p
Enter old passphrase: eaeaea
Bad passphrase.
Comment 1 Darren Tucker 2004-03-25 16:33:33 AEDT
Can you read the key with openssl?  Try
$ openssl dsa -in .ssh/id_dsa.test -modulus -noout
Comment 2 Sandino Araico Sánchez 2004-03-25 18:15:12 AEDT
OpenSSL fails to read the key


[sandino@ingrata sandino] openssl dsa -in .ssh/id_dsa.test -modulus -noout
read DSA key
unable to load Key
3961:error:09065067:PEM routines:LOAD_IV:bad iv chars:pem_lib.c:504:


Should I reinstall OpenSSL?
Comment 3 Darren Tucker 2004-03-25 18:24:36 AEDT
Yes, rebuild OpenSSL, and do "make tests" once it's built to make sure it's
working properly.  If "make tests" passes, install it and rebuild OpenSSH with it.
Comment 4 Sandino Araico Sánchez 2004-03-27 05:22:26 AEDT
I have rebuilt OpenSSL and the error is no longer present, itworks now.
Comment 5 Darren Tucker 2004-03-28 03:40:45 AEST
OK then, sure looks like and OpenSSL problem, closing.
Comment 6 Damien Miller 2004-04-14 12:24:20 AEST
Mass change of RESOLVED bugs to CLOSED