1
0
mirror of synced 2025-12-21 19:06:49 -05:00
Files
docs/content/authentication/managing-commit-signature-verification/adding-a-new-gpg-key-to-your-github-account.md
Laura Coursen 8f964ea2cb GHEC version (#20947)
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: Steve Guntrip <12534592+stevecat@users.noreply.github.com>
Co-authored-by: Robert Sese <sese@github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-10-15 15:41:33 -05:00

2.4 KiB

title, intro, redirect_from, versions, topics, shortTitle
title intro redirect_from versions topics shortTitle
Adding a new GPG key to your GitHub account To configure your account on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %} to use your new (or existing) GPG key, you'll also need the key to your account.
/articles/adding-a-new-gpg-key-to-your-github-account
/github/authenticating-to-github/adding-a-new-gpg-key-to-your-github-account
/github/authenticating-to-github/managing-commit-signature-verification/adding-a-new-gpg-key-to-your-github-account
fpt ghes ghae ghec
* * * *
Identity
Access management
Add a new GPG key

Before adding a new GPG key to your account on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %}, you should have:

{% data reusables.gpg.supported-gpg-key-algorithms %}

When verifying a signature, we extract the signature and attempt to parse its key-id. We match the key-id with keys uploaded to {% data variables.product.product_name %}. Until you upload your GPG key to {% data variables.product.product_name %}, we cannot verify your signatures.

Adding a GPG key

{% data reusables.user_settings.access_settings %} {% data reusables.user_settings.ssh %} 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 {% data variables.product.product_name %} password.

Further reading