1
0
mirror of synced 2025-12-23 21:07:12 -05:00

Remove 'your key must use RSA' for generating new GPG key (#20380)

This commit is contained in:
Zhong Zheng
2023-04-25 23:41:31 +10:00
committed by GitHub
parent 382e9b4d1b
commit 33f5a3ea76

View File

@@ -26,7 +26,7 @@ topics:
1. Download and install [the GPG command line tools](https://www.gnupg.org/download/) for your operating system. We generally recommend installing the latest version for your operating system.
{% data reusables.command_line.open_the_multi_os_terminal %}
3. Generate a GPG key pair. Since there are multiple versions of GPG, you may need to consult the relevant [_man page_](https://en.wikipedia.org/wiki/Man_page) to find the appropriate key generation command. Your key must use RSA.
3. Generate a GPG key pair. Since there are multiple versions of GPG, you may need to consult the relevant [_man page_](https://en.wikipedia.org/wiki/Man_page) to find the appropriate key generation command.
- If you are on version 2.1.17 or greater, paste the text below to generate a GPG key pair.
```shell{:copy}
$ gpg --full-generate-key
@@ -36,7 +36,7 @@ topics:
$ gpg --default-new-key-algo rsa4096 --gen-key
```
4. At the prompt, specify the kind of key you want, or press `Enter` to accept the default.
5. At the prompt, specify the key size you want, or press `Enter` to accept the default. Your key must be at least `4096` bits.
5. At the prompt, specify the key size you want, or press `Enter` to accept the default.
6. Enter the length of time the key should be valid. Press `Enter` to specify the default selection, indicating that the key doesn't expire. Unless you require an expiration date, we recommend accepting this default.
7. Verify that your selections are correct.
8. Enter your user ID information.