gnupg directory chmod 700 ~/.gnupgĪlright, now we need to simply generate a new gpg key by running the following gpg -full-gen-key echo "export GPG_TTY=$(tty)" > ~/.zshrcįinally, set the proper permissions on your. The following example uses zsh, but if you are using bash simply adjust for. In order for everything to work we need to populate our profile with the GPG_TTY environment variable. This is easily achieved by running the following echo "pinentry-program $(which pinentry-mac)" > ~/.gnupg/nf We also need to create and populate our gpg.conf file in the same spot. Within our newly created directory we now need to define a nf file, containing the path to our newly install pinentry-mac package. gnupg directory within our home folder mkdir ~/.gnupg I’ve written in the past about signing commits within Windows – and the process for Mac is quite similar – but since there were a few key differences I thought I’d document here for anyone looking to follow along…įirst up, we need to get gpg, gnupg, and pinentry-mac installed – Homebrew makes this pretty simple with the following command brew install gpg2 gnupg pinentry-macįrom here we need to create a. Recently I’ve made the switch from being a long time Windows user to a newbie Mac user – and I’m powering through! Now I thought I had everything setup on the new Macbook, however upon making a few changes to some code I’ve been working on and pushing it up to GitHub I quickly realized that my commits were no longer “verified”.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |