Showing posts with label openpgp. Show all posts
Showing posts with label openpgp. Show all posts

Monday, March 14, 2016

OpenPGP and annoying pinentry window

Foreword

I've started to use PGP in jabber (GnuPG for windows - Gpg4win - I've used this instruction). Backup of instruction just in case:

 

Problem

And every time when I've got incoming message in jabber - appeared windows 'pinentry' and asked me password (passphrase). It's very annoying and in the internet I didn't find solution for Windows OS.
Window - looks like that:

Lyrics

So, in the internet there are lot of posts where people advices create file with properties - 'gpg-agent.conf', but usually it's about linux. Process monitor showed that in Windows this file expected to be in "C:\Users\username\AppData\Roaming\gnupg\gpg-agent.conf"

Action

  1. Create file "C:\Users\username\AppData\Roaming\gnupg\gpg-agent.conf"
  2. Write in this file 2 lines (values can be any big number - it's seconds of caching your password):
    • max-cache-ttl 2592000
    • default-cache-ttl 2592000
  3. Restart your gpg-agent.exe process