$ gpg --full-gen-key
...
Please select what kind of key you want:
(1) RSA and RSA (default)
(2) DSA and Elgamal
(3) DSA (sign only)
(4) RSA (sign only)
Your selection? 1
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048) 4096
Requested keysize is 4096 bits
Please specify how long the key should be valid.
0 = key does not expire
<n> = key expires in n days
<n>w = key expires in n weeks
<n>m = key expires in n months
<n>y = key expires in n years
Key is valid for? (0) 0
Key does not expire at all
Is this correct? (y/N) y
GnuPG needs to construct a user ID to identify your key.
Real name: Mr. Robot
Email address: <your_email>
Comment:
You selected this USER-ID:
"Mr. Robot <your_email>"
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
$ gpg --list-secret-keys --keyid-format LONG ${your_email}
sec rsa4096/218C24A1F5EB9317 2020-07-15 [SC]
AF2584E5FB6365B10F6C809B218C24A1F5EB9317
uid [ultimate] Shinyoung Kim <rolroralra@naver.com>
ssb rsa4096/E8B39DB082AF1B8C 2020-07-15 [E]
$ gpg --armor --export 30F2B65B9246B6CA
-----BEGIN PGP PUBLIC KEY BLOCK-----
...
...
-----END PGP PUBLIC KEY BLOCK-----
Last active
July 15, 2020 15:39
-
-
Save rolroralra/78a17db131960c4164f70ea19b9c545e to your computer and use it in GitHub Desktop.
GnuPG
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment