Change Passphrase in Batch Mode

Daniel Kilimnik kaleb.dk at gmail.com
Wed Mar 16 09:26:15 CET 2022


Hey,
I am trying to change a passphrase of my gpg keys as part of a script. I
saw the --change-passphrase option, but I could not get it to work in batch
mode. With --pinentry-mode loopback --passphrase-fd 0 activated. It asks
for my current passphrase, but then exits with a success.

The whole command I used was this:
gpg --pinentry-mode loopback --status-fd 2 --no-tty --no-verbose --batch
--home /tmp/keys --passphrase-fd 0 --change-passphrase
6ABA6B37E3566FAAB258F9E0E5E81AFB0F59B624

Maybe somone has an idea how to do this properly.


Thx
Regards
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20220316/87773df2/attachment.html>


More information about the Gnupg-users mailing list