Skip to content

Instantly share code, notes, and snippets.

@Manouchehri
Last active March 22, 2022 21:16
Show Gist options
  • Save Manouchehri/c5630126af6c8927cccc458d6257c3ae to your computer and use it in GitHub Desktop.
Save Manouchehri/c5630126af6c8927cccc458d6257c3ae to your computer and use it in GitHub Desktop.
brew install git openssh secretive # open a new terminal after
# Grab the path from Secretive's UI
git config --global user.signingkey /Users/YOURNAMEHERE/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/PublicKeys/YOURKEYHERE.pub
git config --global gpg.format ssh
git config --global commit.gpgSign true
git config --global tag.gpgSign true
git config --global tag.forceSignAnnotated true
# This is a bit redundant for most attack vectors, but let's keep it to be safe anyway.
git config --global push.gpgSign if-asked
# Test out file signing
echo "Hello World" > demo.txt
ssh-keygen -Y sign -f /Users/YOURNAMEHERE/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/PublicKeys/YOURKEYHERE.pub -n file demo.txt
# You now have demo.txt.sig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment