Last active
March 22, 2022 21:16
-
-
Save Manouchehri/c5630126af6c8927cccc458d6257c3ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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