GitHub/gpg: Difference between revisions

From Omnia
Jump to navigation Jump to search
(Created page with "== gpg ==")
 
Line 1: Line 1:
== gpg ==
== gpg ==
Adding a GPG key to your GitHub account - GitHub Docs
https://docs.github.com/en/authentication/managing-commit-signature-verification/adding-a-gpg-key-to-your-github-account
Generate key:
gpg --full-generate-key
List keys to get keyID
gpg --list-keys
Export public key by keyID, and save to Github
gpg --armor --export 3AA5C34371xxx
You will probably get an error about being unable to sign if you are in a remote console, to fix this:
export GPG_TTY=$(tty)
If you really hate security, you can remove the passphrase:
gpg --edit-key XXX
  passwd
    enter password to unlock
    then enter empty password twice
    then save

Revision as of 07:59, 4 February 2024

gpg

Adding a GPG key to your GitHub account - GitHub Docs
https://docs.github.com/en/authentication/managing-commit-signature-verification/adding-a-gpg-key-to-your-github-account

Generate key:

gpg --full-generate-key

List keys to get keyID

gpg --list-keys

Export public key by keyID, and save to Github

gpg --armor --export 3AA5C34371xxx

You will probably get an error about being unable to sign if you are in a remote console, to fix this:

export GPG_TTY=$(tty)

If you really hate security, you can remove the passphrase:

gpg --edit-key XXX
  passwd
   enter password to unlock
   then enter empty password twice
   then save