Skip to content

mafredri/gpg-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gpg-notify

This command line tool (future daemon) watches gpg-agent logs and notifies you when a smartcard action is required or what process requested pinentry.

Status

Super early WIP.

Installing

$ go get -u github.com/mafredri/gpg-notify

Running

  1. Make sure to Enable log file monitoring
  2. Run gpg-notify
    • Actually cd $GOPATH/src/github.com/mafredri/gpg-notify && gpg-notify for now (because images...)
  3. Make sure gpg-agent is restarted if it's already running
    • gpgconf --kill gpg-agent

Enable log file monitoring

Modify ~/.gnupg/gpg-agent.conf:

log-file socket:///Users/myuser/.gnupg/S.gpg-agent.log
debug-pinentry
debug 1024

TODO

  • 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

About

Notify about GPG events (pinentry, smartcard)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages