• [gentoo-user] Confusion about gpg-preset-passphrase

    From efeizbudak@21:1/5 to All on Fri Mar 3 13:40:01 2023
    Hi all,

    So I'm trying to use gpg-preset-passphrase but for some reason I keep
    having to enter the passphrase all the same. I run

    /usr/libexec/gpg-preset-passphrase --preset $KEYGRIP

    and then paste the passphrase (I've also tried this with the keygrip for
    the [E] subkey as opposed to the [SC]). But then when I try to decrypt
    a file encrypted for this key I still face pinentry. I also tried
    running the decryption command with the

    --pinentry loopback --batch

    which just fails with

    gpg: Sorry, we are in batchmode - can't get input

    And I already have in my gpg-agent.conf the following:

    allow-preset-passphrase
    max-cache-ttl 2147483647

    Am I misunderstanding something here? Can someone please point me in the
    right direction?

    Thank you!

    --
    All the best,
    Efe

    The funny quote of this email is trivial and left as an exercise.

    -----BEGIN PGP SIGNATURE-----

    iQKTBAABCgB9FiEEVwebaduP4RnpDeHTNg4/A+X8N/oFAmQB6dRfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU3 MDc5QjY5REI4RkUxMTlFOTBERTFEMzM2MEUzRjAzRTVGQzM3RkEACgkQNg4/A+X8 N/qTqQ//YGcQeQUMMQex/UrEZbS4OYVDvp9vmtF3KZoA3ev0v4JJGlZVZvNQvjtS IW6dXfhxZ6VwwQg37wx/8CWsX58M/9tdrcnokfmpy8h7JIMn1SsrKn2N9j4T6rsk f/pKSaZP9vBq70lMsLOS3G60Ber7wxjrsKYq9Ku9qWVqCC3D0XCcMEDwSbmXw5AN fw9K+Bo8yaYdewosSiWRqTnVDOTIQIU7v+5FmPECll4cAh4rzpJ0vmIbp9N1IFc8 kv/IMBD2B+OH1vhtyWS9frEjkX/JcT/0YiXksn2XxqAwKfjpIQvI2BKuXbHIqJRq 0Dbm7mkR9u9HzqxGVbO2i/VC74oxR53MkMd+025Cj9cVJzBwK+lezJsJ2xg+GHtl SnLR8jH63FtbWZbrG9ur8ZVS8YEmlARkK82eidnnKKotNIGn+QWruhVcRp9KxPZG wO7M/oAUbjO8C9kNBWT85pVVIMN5NqkQZzzlCycxO2ca79ksBLsiS2mxzsOWacrU FgY/U7piLfkNmS3u3PPklcJQZpHvT+Zfd9kIpv/7yAHzOjVLHW7tSfzVu/A8mzpS 9UCSfn8uXiDTax5JRgDbM8qhCmdvtba9Q6V1lxxih9lNraisrFse7sonH3kZKJMo KQPQqfe9WQmcwlkTrW+BVQHj1ayDXiQqIULy7
  • From efeizbudak@21:1/5 to efeizbudak on Fri Mar 3 16:00:02 2023
    On 23/03/03 07:36AM, efeizbudak wrote:
    Hi all,

    So I'm trying to use gpg-preset-passphrase but for some reason I keep
    having to enter the passphrase all the same. I run

    /usr/libexec/gpg-preset-passphrase --preset $KEYGRIP

    and then paste the passphrase (I've also tried this with the keygrip for
    the [E] subkey as opposed to the [SC]). But then when I try to decrypt
    a file encrypted for this key I still face pinentry. I also tried
    running the decryption command with the

    --pinentry loopback --batch

    which just fails with

    gpg: Sorry, we are in batchmode - can't get input

    And I already have in my gpg-agent.conf the following:

    allow-preset-passphrase
    max-cache-ttl 2147483647

    Am I misunderstanding something here? Can someone please point me in the right direction?

    Thank you!


    To anyone who sees this, it was caused by my stupidity to use a very
    illegal password. Please do not bother.

    --
    All the best,
    Efe

    The funny quote of this email is trivial and left as an exercise.

    -----BEGIN PGP SIGNATURE-----

    iQKTBAABCgB9FiEEVwebaduP4RnpDeHTNg4/A+X8N/oFAmQCCYBfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU3 MDc5QjY5REI4RkUxMTlFOTBERTFEMzM2MEUzRjAzRTVGQzM3RkEACgkQNg4/A+X8 N/o3lA//ZffcAr/QDAUzbKPZgFD70629Uah52RZyFDwIvlPdN2pEa2sAX7PizoCU /7oQ3syUrxkeTRIMAUqM/P+B/VQehGL6vuw9ZJc+shFO863UCF8i1HkATLJXPBBd ntmk8QHeO1wT9D+ad2Aogpu2fMvo0eBPrTCbuRGgVTBE5boDs78cutj/4IV6MpkC eMvl7rzBWI2yqmgIYQI/lOsT8B1T5cnWaLAKUi7LxwClAnaXrzc6v540GctM5EIX xUfZ3N13UusMtAWy1+KrV5pR6xNpAUN3CZkU1LKbgX77drD7SdSvTSqrhM3XcujT tzxMBTc/+kEV2s2ijn/6ERc0y72A/9KBJcwsjycr1BDd82hfb8oz0siZesvj+had QKc34D+5O40fli78DxSuIGHU1Mh6iyEnvrcfLG1Sg5V3hzh2yLvEy5grStSnpyF6 SJ1XisWs9oIK5Tm2+7CDFSgm/SuyvjWbMwpmkMVVpJI8VkA7rYuro5UdAhD8QVHf tLt+tcs/obUar8wCTNB3VCqGvlIlLrnlY9nk5ZiWFAuZDkWgEjR+qWglPu0LUgLR Ni3iTsEUH1HTcRFnlwFp0NiFEqXKhpYtRKikTecX7FER9joPAnvKM7b7TGi4HkOv 98wNWQ+HCWeJwpMrbYjrl7zLKkUfRs2s5aSaD