Skip to content

Commit

Permalink
Manage gpg without GPGTools
Browse files Browse the repository at this point in the history
I had some trouble after upgrading GPGTools, where it would largely
ignore my smart card and I couldn't unlock my stuff. This sent me into a
wild rage, and after too long debugging with no results, I switched
tactics; trash GPGTools and install gpg myself.

GPGTools is a nice easy package for gpg on a Mac, except that now it was
causing me headaches, so bye. It also added Mail support which I don't
use, so another reason to get rid of bloat.

After some searching I got the system configured with the management of
the included config files. I can't speak to exactly why all this config
works, I'm just happy it does.
  • Loading branch information
bronzehedwick committed Nov 28, 2020
1 parent 5136be0 commit 315460a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ brew "fzy"
brew "git"
brew "git-delta"
brew "git-standup"
brew "gpg"
brew "hugo"
brew "imagemagick"
brew "isync"
Expand All @@ -27,6 +28,7 @@ brew "pandoc"
brew "par"
brew "pass"
brew "pianobar"
brew "pinentry-mac"
brew "rename"
brew "ripgrep"
brew "rust"
Expand Down
8 changes: 8 additions & 0 deletions fish/.config/fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ if test -n "$NVIM_LISTEN_ADDRESS"
end
end

# GPG agent
if test -f "$HOME/.gpg-agent-info"
. "$HOME/.gpg-agent-info"
set GPG_AGENT_INFO
set SSH_AUTH_SOCK
end
set GPG_TTY (tty)

if not functions -q fisher
set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config
curl https://git.io/fisher --create-dirs -sLo $XDG_CONFIG_HOME/fish/functions/fisher.fish
Expand Down
5 changes: 5 additions & 0 deletions gnupg/.gnupg/gpg-agent.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pinentry-program /usr/local/bin/pinentry-mac
default-cache-ttl 600
max-cache-ttl 7200
debug-level basic
log-file $HOME/.gnupg/gpg-agent.log
6 changes: 6 additions & 0 deletions gnupg/.gnupg/gpg.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ask-cert-level
use-agent
keyserver keys.fedoraproject.org
auto-key-retrieve
no-emit-version
default-key D81A4957BAF06BCA6E060EE5461C015E032EF9CB
1 change: 1 addition & 0 deletions gnupg/.gnupg/scdaemon.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
reader-port "Yubico YubiKey OTP+FIDO+CCID"

0 comments on commit 315460a

Please sign in to comment.