Code Monkey home page Code Monkey logo

gnupg2-msys2's People

Contributors

carlolars avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gnupg2-msys2's Issues

Automated PGP Decryption using Task Scheduler not working

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 ;

enter passphrase in terminal while private key authentication

Hello! Your post is working like charm, only one common issue that happens to all platforms: pinentry GUI will pop up when any private key authentication is needed.

PATH is automatically configured by GPG4Win, appending C:\Program Files (x86)\Gpg4win\..\GnuPG\bin. As many other pages, like this one suggest pinentry-(curses|tty) which both packages don't exist in mingw pacman package repo.

I found this page exactly what I'm trying to solve now and I tried what he did too, this post has no answer yet. I tried to create and modify %APPDATA%\gnupg\gpg-agent.conf and added pinentry-program "c:/Program Files (x86)/GnuPG/bin/pinentry-basic.exe" (note the paired double quotes). On the contrary to what was mentioned on the page, I could call pinentry-basic, though it's also a pop-up:
image

... which is actually different from what GPG4win has to offer:
image

Solution found in the end:
allow-loopback-pinentryis the default option for gpg-agent, simply add pinentry-mode loopback to %APPDATA%\gnupg\gpg.conf then run gpgconf --kill gpg-agent ; gpg-connect-agent /bye in PowerShell will do the trick.

I'm keeping the exploration process here as a reference, thanks again!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.