in reply to Re^6: Unable to get any decrypted output from $gpg->verify
in thread Unable to get any decrypted output from $gpg->verify

It's not the actual contents of the secret key, just the ID. $ENV{SECRET_KEY} is the 8 hex digits of your secret key ID. eg:

$ export SECRET_KEY=0xDEADBEEF GPG_PP='Correct Horse Battery Staple' T +O_MAIL='foo@example.com'

🦛

Replies are listed 'Best First'.
Re^8: Unable to get any decrypted output from $gpg->verify
by xuo (Acolyte) on Aug 23, 2023 at 18:41 UTC
    Hi,
    Yes, this is what I've found on the Metacpan Crypt::GPG module description. But the script does not work at all. Then either I'm doing something wrong (bad secret key, bad passphrase, ... but running /bin/gpg -e ... works fine) or my perl module is not properly installed on my Mageia distribution.

    I've got other PCs but all using the same Mageia version. I'll try on my work PC but I'm not sure at all that the Crypt::GPG Perl module will be available. And it will tough to find an explanation to ask IT to install it :)

    Regards.

    Xuo.

      Why would you need IT to install it on your PC? Just install Perl in your home directory and you can install all the CPAN modules you want. No root permissions required.

      It's easy enough, just use Perlbrew

      Generally, it's not a good idea to use the system perl for user tasks anyway (the same goes for python, nodejs, etc...), because then you and your system will be fighting over which module version is the "correct" version and you might break your system. Use a perl installation in your home directory.

      PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP

        Hello.

        Understood. I've tried on my work PC but the module was not installed. And, I won't be allowed to install any <external> modules in my home directory. But I can try on my personal PC.

        Regards.

        Xuo.