I have a p12 store. I have read about export like this openssl pkcs12 -in path.p12 -out newfile.key.pem -nocerts -nodes but it doesn't export in EC format.
How do I do I use openssl to export the private key in EC format?
I read that the exported key should begin with -----BEGIN EC PRIVATE KEY-----
1 Answer
If you are certain that your key is in fact an EC key, you are halfway there.
Once exported the key with
openssl pkcs12 -in path.p12 -nodes -nocerts -out newfile.key.pemthen convert it to EC PRIVATE KEY using below command
openssl ec -in newfile.key.pem -out ec.key.pemMore info here