1
0
mirror of synced 2026-01-04 09:06:46 -05:00
Files
docs/data/reusables/gpg/list-keys-with-note.md
Courtney Wilson 1352d33f36 Update list-keys-with-note.md
attempting space correction
2022-08-26 09:53:14 -05:00

586 B

  1. Use the gpg --list-secret-keys --keyid-format=long command to list the long form of the GPG keys for which you have both a public and private key. A private key is required for signing commits or tags.

    $ gpg --list-secret-keys --keyid-format=long
    

    {% note %}

    Note: Some GPG installations on Linux may require you to use gpg2 --list-keys --keyid-format LONG to view a list of your existing keys instead. In this case you will also need to configure Git to use gpg2 by running git config --global gpg.program gpg2.

    {% endnote %}