<div dir="ltr"><p style="box-sizing:border-box;font-size:medium;line-height:1.3;margin:0px 0px 1em;color:rgba(0,0,0,0.87);font-family:"Fira sans","Helvetica Neue",sans-serif">Hey,<br>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.<br><br>The whole command I used was this:<br>gpg --pinentry-mode loopback --status-fd 2 --no-tty --no-verbose --batch --home /tmp/keys --passphrase-fd 0 --change-passphrase 6ABA6B37E3566FAAB258F9E0E5E81AFB0F59B624<br><br>Maybe somone has an idea how to do this properly.<br> <br><br>Thx<br>Regards<br>Daniel<br></p></div>