Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating Ed25519 key/pair with LibreSSL on mac: missing algorithm

Tags:

macos

openssl

jwt

I am trying to generate a Ed25519 key/pair using

openssl genpkey -algorithm Ed25519 -out ed25519key.pem   

However, on my MacOS I get this:

Algorithm Ed25519 not found

I am running OpenSSL / LibreSSL 3.2.5 but I have no idea why this algorithm wouldn't be available.

Is there something I'm missing / need to install?

like image 235
Andrei Dascalu Avatar asked Sep 19 '25 10:09

Andrei Dascalu


1 Answers

It seems that the default OpenSSL (LibreSSL) that comes with MacOS (even in MacOS 11.2.3) simply doesn't have the algorithm.

I installed OpenSSL 1.1.1k via brew separately (in /usr/local/opt/[email protected] ) and using that binary the command works.

like image 104
Andrei Dascalu Avatar answered Sep 23 '25 08:09

Andrei Dascalu