compressed ecdsa public keys

Robert Moskowitz rgm at htt-consult.com
Mon Jun 5 14:25:48 UTC 2023



On 6/5/23 09:49, Matt Caswell wrote:
>
>
> On 05/06/2023 14:17, Robert Moskowitz wrote:
>> is there a way in genkey to create an ECDSA P-256 in compressed 
>> format (now that the patent is well expired)?
>
> You can do it like this:
>
> $ openssl ecparam -genkey -name P-256 -noout | openssl ec -conv_form 
> compressed -out key.pem

Ah, perhaps that is why I missed it.  You make it a regular uncompressed 
then compress it.

OK.  This is good.

thanks



More information about the openssl-users mailing list