Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including
Stack Overflow
, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this community
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
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-----
–
–
–
–
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.pem
then convert it to EC PRIVATE KEY using below command
openssl ec -in newfile.key.pem -out ec.key.pem
More info here