2.6 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. |
|
|
|
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:
You can add multiple public keys to your GitHub account. Commits signed by any of the corresponding private keys will show as verified. If you remove a public key, any commits signed by the corresponding private key will no longer show as verified.
{% 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.
4. In the "Key" field, paste the GPG key you copied when you generated your GPG key.
5. Click Add GPG key.
6. To confirm the action, enter your {% data variables.product.product_name %} password.