How to create ed25519 subkey in GPG?
+1
−0
At the moment GPG only offers the following options when generating a new subkey the with the addkey
command:
gpg> addkey
Please select what kind of key you want:
(3) DSA (sign only)
(4) RSA (sign only)
(5) Elgamal (encrypt only)
(6) RSA (encrypt only)
(14) Existing key from card
Your selection?
None of them uses the ed25519 elliptic curve. Yet it's possible to use this curve when generating a totally new key, so presumably it's somehow possible when creating just a subkey as well?
1 answer
+1
−0
By using the non-interactive --quick-add-key
method. This adds separate signing and encryption subkeys with expiration date one year from now:
$ gpg --quick-add-key YOUR-PRIMARY-KEY-ID ed25519 sign 1y
$ gpg --quick-add-key YOUR-PRIMARY-KEY-ID cv25519 encr 1y
Source: An abridged guide to using ed25519 PGP keys with GnuPG and SSH by Matt Sicker
0 comment threads