Changing the password of a secret key

Sascha Kiefer sk at intertivity.com
Thu Feb 10 17:51:50 CET 2005


hi.
tried to change a password of a secret key by calling gpg from a program.
Here the way i tried it. Created a file named "uhu". It looks like this:

passwd
uhu
test
save

where uhu is the old-password and test the newpassword.
Then i called gpg:

gpg.exe --status-fd 1 --command-fd 0 --edit-key mustermann < uhu

The output is the following:

[GNUPG:] GET_LINE keyedit.prompt
[GNUPG:] GOT_IT
Key is protected.
[GNUPG:] USERID_HINT DB6D141403B8E2E8 Max Musterman <max at mustermann.de>
[GNUPG:] NEED_PASSPHRASE DB6D141403B8E2E8 DB6D141403B8E2E8 1 0

You need a passphrase to unlock the secret key for
user: "Max Musterman <max at mustermann.de>"
1024-bit RSA key, ID 03B8E2E8, created 2005-02-04

[GNUPG:] GET_HIDDEN passphrase.enter
[GNUPG:] GOT_IT
[GNUPG:] GOOD_PASSPHRASE
Enter the new passphrase for this secret key.

[GNUPG:] NEED_PASSPHRASE_SYM 3 3 2
[GNUPG:] GET_HIDDEN passphrase.enter
[GNUPG:] GOT_IT

[GNUPG:] GET_LINE keyedit.prompt
[GNUPG:] GOT_IT
[GNUPG:] GET_BOOL keyedit.save.okay
[GNUPG:] GOT_IT


Too me it looks pretty good but that password remained unchanged!
Any hints on that?

Thank you!





More information about the Gnupg-users mailing list