This command line tool (future daemon) watches gpg-agent
logs and notifies you when a smartcard action is required or what process requested pinentry.
Super early WIP.
$ go get -u github.com/mafredri/gpg-notify
- Make sure to Enable log file monitoring
- Run
gpg-notify
- Actually
cd $GOPATH/src/github.com/mafredri/gpg-notify && gpg-notify
for now (because images...)
- Actually
- Make sure gpg-agent is restarted if it's already running
gpgconf --kill gpg-agent
Modify ~/.gnupg/gpg-agent.conf
:
log-file socket:///Users/myuser/.gnupg/S.gpg-agent.log
debug-pinentry
debug 1024
- Better state handling
- Display more detailed information about the process that invoked pinentry or smartcard
- Daemonize this tool
- Move out notifications into separate project?
- Attribute icons
- Think about security aspects:
- Detection (and notificon) when gpg-agent / scdaemon is restarted
- Only allow gpg-agent / scdaemon to connect and write to socket