[gnupg-users] Change key password in batch mode

Werner Koch wk at gnupg.org
Thu Oct 25 11:04:04 CEST 2012

On Wed, 24 Oct 2012 11:29, jaimefdez86 at gmail.com said:

> But then I have to use pinentry, and I don't want to. I tried

You have to ;-).  Search this list for pinentry wrapper to see how you
can work around it.

> me type the new password. I think that passphrase-fd only read one password
> at a time.


>  I had used these options together to change the expiration date, is it
> wrong?

Yes.  If you want to use GnuPG-1, have a look at GPGME, it makes this
relativly easy.  You can find example code in GPA.



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gnupg-users mailing list