Add helper for making EC key from components by tomhughes ยท Pull Request #358 ยท Thalhammer/jwt-cpp

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even the docs look good ๐Ÿ‘

image

If I have to be picky, an example and the openssl command to generate the test certificate would take this above 100%

I believe the correct one for this curve is

โžœ  /tmp openssl ecparam -genkey -name secp384r1 -noout -out private-key.pem       
โžœ  /tmp openssl ec -in private-key.pem -pubout -out public-key.pem         
read EC key
writing EC key
โžœ  /tmp cat public-key.pem 
-----BEGIN PUBLIC KEY-----
MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEmMgWcIvCrgWF9zvYy5y5fO8EQutEYzJl
K6DF8S7DN/RUsorSJdBMvJ8l66Crlq1mSWWFztseK6URXfUJSK1vj2dE5QoUkaxh
S6WqXuZ2jT0dHjJxDAZc7M2e+EImdDU5
-----END PUBLIC KEY-----

the curve names are a nightmare ๐Ÿ™Š