Skip to content
This repository was archived by the owner on Aug 19, 2020. It is now read-only.
This repository was archived by the owner on Aug 19, 2020. It is now read-only.

Automated PGP Decryption using Task Scheduler not working #3

@semsel123

Description

@semsel123

Hello,
I am trying to suppress passphrase prompt completely as we are looking for a fully automated unattended decryption program. I am using Task Scheduler to run the below command
echo mypassphrase|gpg --logger-file "D:\FileShare\PGPScripts\SFTP\gpglog.log" --pinentry-mode loopback --batch --yes --passphrase-fd 0 --decrypt-files "D:\FileShare\WIP*.pgp"

After the system goes idle the decryption starts failing with the error "Bad Passphrase/ Secret key available". After running a manual decryption, the job continues to run successfully.

What should I do to get rid of this problem?

Are the below options going to be helpful in my case?

add pinentry-mode loopback to %APPDATA%\gnupg\gpg.conf;
then run gpgconf --kill gpg-agent ;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions