This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2020-05-23. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Article version: Enterprise Server 2.17

Adding a new GPG key to your GitHub account

To configure your GitHub Enterprise account to use your new (or existing) GPG key, you'll also need to add it to your GitHub Enterprise account.

In this article

Before adding a new GPG key to your GitHub Enterprise account, you should have:

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
  • EdDSA

When verifying a signature, we extract the signature and attempt to parse its key-id. We match the key-id with keys uploaded to GitHub Enterprise. Until you upload your GPG key to GitHub Enterprise, we cannot verify your signatures.

Adding a GPG key

  1. In the upper-right corner of any page, click your profile photo, then click Settings.
    Settings icon in the user bar
  2. In the user settings sidebar, click SSH and GPG keys.
    Authentication keys
  3. Click New GPG key.
    GPG Key button
  4. In the "Key" field, paste the GPG key you copied when you generated your GPG key.
    The key field
  5. Click Add GPG key.
    The Add key button
  6. To confirm the action, enter your GitHub Enterprise password.

Further reading

Ask a human

Can't find what you're looking for?

Contact us