openssl genpkey -algorithm ed25519 -out key.pem

Category: Security & Hardening

openssl genpkey -algorithm ed25519 -out key.pem

Generate an Ed25519 private key

Creates an Ed25519 key, a modern elliptic-curve algorithm that is fast, small, and considered strong, supported in OpenSSL 1.1.1 and later. Ed25519 keys are fixed-size and need no bit-length option. Many TLS stacks and SSH servers accept them today, though some legacy clients still expect RSA.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.