Adding a GPG key to your GitHub account 您所在的位置:网站首页 publicgpgkey Adding a GPG key to your GitHub account

Adding a GPG key to your GitHub account

2023-03-10 12:44| 来源: 网络整理| 查看: 265

About addition of GPG keys to your account

To sign commits associated with your account on GitHub, you can add a public GPG key to your personal account. Before you add a key, you should check for existing keys. If you don't find any existing keys, you can generate and copy a new key. For more information, see "Checking for existing GPG keys" and "Generating a new GPG key."

You can add multiple public keys to your account on GitHub. 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.

To verify as many of your commits as possible, you can add expired and revoked keys. If the key meets all other verification requirements, commits that were previously signed by any of the corresponding private keys will show as verified and indicate that their signing key is expired or revoked.

Supported GPG key algorithms

GitHub 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

When verifying a signature, GitHub extracts the signature and attempts to parse its key ID. The key ID is then matched with keys added to GitHub. Until a matching GPG key is added to GitHub, it cannot verify your signatures.

Adding a GPG key

In the upper-right corner of any page, click your profile photo, then click Settings.

In the "Access" section of the sidebar, click SSH and GPG keys.

Click New GPG key.

In the "Key" field, paste the GPG key you copied when you generated your GPG key.

Click Add GPG key.

To confirm the action, enter your GitHub password.

Further reading "Checking for existing GPG keys" "Generating a new GPG key" "Telling Git about your signing key" "Associating an email with your GPG key" "Signing commits" "About commit signature verification"


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有