tag:blogger.com,1999:blog-4401555280825766585.post3345370049131228980..comments2023-07-21T04:50:56.062-04:00Comments on Life of a Computer Scientist: My notes for setting up a new Yubikey 5Likai Liuhttp://www.blogger.com/profile/06372207357661600589noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-4401555280825766585.post-60588388052107033432020-12-04T18:20:01.219-05:002020-12-04T18:20:01.219-05:00Cheers for this.
For those reading who are strugg...Cheers for this.<br /><br />For those reading who are struggling to get a working gpg agent with the latest version of GPGtools note that the method of operation for the agent changed in gnupg 2.1 and above: https://www.gnupg.org/faq/whats-new-in-2.1.html#autostart<br /><br />I use zsh as my shell, which is the default in newer macOS installations so I did the following steps. Note the explicit launch in my .zshrc file as autostart does not work with enable-ssh-support option active as per the documentation.<br /><br /><b>Add this to ~/.gnupg/gpg-agent.conf</b><br />enable-ssh-support<br /><br /><b>Add this to ~/.gnupg/gpg.conf</b><br />default-key 12345678 #replace with your keyID<br /><br /><b>Add this to ~/.zshenv to point the environment variable to the socket</b><br />SSH_AUTH_SOCK=~/.gnupg/S.gpg-agent.ssh<br /><br /><b>Add this to ~/.zshrc</b> <br />gpgconf --launch gpg-agentsporadichttps://www.blogger.com/profile/09204480705766005383noreply@blogger.com