-
Generate key
gpg --full-generate-key
- size 4096
- RSA and RSA
- Dont expire
- email = [email protected]
- name = Gaurav Chikhale
-
List keys and copy key ID
gpg --list-secret-keys --keyid-format LONG
- sec 4096R/3AA5C34371567BD2 2016-03-10
- key ID is 3AA5C34371567BD2
-
Copy the GPG Key
gpg --armor --export 3AA5C34371567BD2
-
Save copied key to GitHub account
-
Update .gitconfig
[user] email = [email protected] name = Gaurav Chikhale signingkey = 3AA5C34371567BD2 [commit] gpgsign = true [gpg] program = /usr/local/bin/gpg
-
Install pinentry-mac
brew install pinentry-mac
-
Update ~/.gnupg/gpg-agent.conf
pinentry-program /usr/local/bin/pinentry-mac
-
Kill gpg agent
killall gpg-agent
Last active
August 3, 2019 22:42
-
-
Save gauravchl/6b056128bfa962a52f3ddf3b15336acd to your computer and use it in GitHub Desktop.
gpg installation osx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment