Verificar se há chaves GPG
Antes de gerar uma chave GPG, você pode verificar se há outras chaves chave GPG.
Supported GPG key algorithms
GitHub Enterprise supports several GPG key algorithms. If you try to add a key generated with an unsupported algorithm, you may encounter an error.
- RSA
- ElGamal
- DSA
- ECDH
- ECDSA
- EdDSA
Observação: a GPG não vem instalada por padrão no OS X nem no Windows. Para instalar ferramentas de linha de comando GPG, consulte a página de download da GnuPG.
-
Abra Terminal (Terminal)Terminal (Terminal)Git Basho terminal.
-
Use the
gpg --list-secret-keys --keyid-format LONG
command to list 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: 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
.