Hi,

I’ve seen some tutorial to create EdDSA key with Gnupg

gpg --full-gen-key

and it’s supposed to allow me to create ECC key, but I see only

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)
(14) Existing key from card
Your selection?\

gpg --version show:


gpg (GnuPG) 2.2.27
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA

Any idea what’s wrong ?

11 points

I remember on some distros I had to add --expert, never checked why. Maybe was an old version.

gpg --expert --full-gen-key

permalink
report
reply
1 point

Thank you @Anafabula@discuss.tchncs.de ! it works !

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)
(7) DSA (set your own capabilities)
(8) RSA (set your own capabilities)
(9) ECC and ECC
(10) ECC (sign only)
(11) ECC (set your own capabilities)
(13) Existing key
(14) Existing key from card\

I’m wondering whats is the option: (9) ECC and ECC ?? I found nothing in their documentation :/

permalink
report
parent
reply
-3 points

Unless you’re working with embedded chips with very small storage space, I’d recommend 4098-bit RSA

permalink
report
reply
1 point
*

8096 bit is safer long term as it should remain uncrackable for a longer time.

I was thinking you were talking about 2048

permalink
report
parent
reply
1 point

Does GPG support it?

permalink
report
parent
reply
1 point
*

Isn’t it the default?

Edit: I was mixing up 2048 with 4096

permalink
report
parent
reply
0 points

What distro and version of that distro are you using? Did you install gpg from the repository or elsewhere? What version of gpg are you running?

permalink
report
reply
1 point

I had the same issue so wrote this down when I figured it out

Generate ultimate key

gpg2 --quick-generate-key hello@example.com ed25519 default 0 

Add sub key

gpg2 --quick-add-key <FINGERPRINT> ed25519

List keys in long format

gpg2 --list-keys --with-subkey-fingerprint --keyid-format long 
permalink
report
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 9.1K

    Monthly active users

  • 3.2K

    Posts

  • 37K

    Comments