Open pavlodvornikov opened 7 years ago
Again this a GPG error, it sounds like on your system it's trying to connect to a key server of some sort and failing. I'm not very familiar with how this works as the GPG stuff was submitted by another developer, but I'm pretty sure this is not Makeself's fault per se here.
With GPG 2.2 on my system I also had to add --batch
to --gpg-extra
. However, as OP, I'm facing issue when decrypting. It seems that stdin is not duplicated to gpg because the following works:
mkfifo /tmp/pwfifo
exec 42<>/tmp/pwfifo
echo "1234" >/tmp/pwfifo
makeself.sh --gpg-encrypt --gpg-extra "--batch --passphrase-fd 42" test test.run "test" ./test.sh
EDIT: Yes, with --passphrase-fd 0
, the password is the tar archive. :-)
https://github.com/megastep/makeself/blob/937b344c148e7e9a1f0c59ce64e1d9790b83b0f8/makeself.sh#L507
https://github.com/megastep/makeself/blob/937b344c148e7e9a1f0c59ce64e1d9790b83b0f8/makeself.sh#L610
To automate generation of self-extractable encrypted archives I am trying to use --gpg-encrypt option with --gpg-extra "--passphrase-fd 0" (usage reference). There are no problems with archive generation but then, during decrypting password prompt appears and after entering password "bad key" error is thrown.
Please let me know if you need any additional details/debug info.
Could you tell me please if it's possible to add same "--gpg-extra" argument to archives generated with Makeself for passing gpg decryption parameters?