Signing message problem with GPG loopback pin-entry option
Ingo Klöcker
kloecker at kde.org
Sun Feb 20 17:06:07 CET 2022
On Sonntag, 20. Februar 2022 16:25:31 CET Alireza Sadeghpour via Gnupg-users
wrote:
> I am trying to encrypt and sign a file with gpg and loopback pinentry
> option, with the below command:
>
> gpg --pinentry-mode=loopback --passphrase ="mypws" \
> --ignore-time-conflict --ignore-valid-from \
> --cipher-algo AES256 --symmetric --ignore-time-conflict \
> --passphrase-file ~/.gnupg/PG/p-enckey --trust-model always -q --batch
> --yes --local-user "UserID" \
> --sign --force-mdc \
> --output /var/psigner/2 \
> /var/psigner/1
Using the options --passphrase *and* --passphrase-file makes no sense.
> however i got the below error message:
>
> gpg: signing failed: Too much data for IPC layer
> gpg: /var/psigner/1: sign+symmetric failed: Too much data for IPC layer
Could it be that the file ~/.gnupg/PG/p-enckey contains more data than gpg
allows/supports for a passphrase?
> Can anyone give me advice to solve the problem?
Removing `--passphrase-file ~/.gnupg/PG/p-enckey` from the command line could
solve your problem.
Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20220220/e0aa8f6d/attachment.sig>
More information about the Gnupg-users
mailing list