Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 1
    openssl ec -inform PEM -outform DER -pubin -in mypublic.pem.key -out mypublic.der.key Commented Jan 4, 2024 at 20:06
  • You can answer your own questions on here... Commented Jan 4, 2024 at 20:16
  • @code2535 This answer look OK , see man openssl-pkey. Did you have any issue? Commented Jan 4, 2024 at 20:57
  • sslshopper.com/article-most-common-openssl-commands.html lists a PEM -> DER conversion command for x509, but my reading of man openssl-ec indicates similar options will work for elliptic curve keys (openssl ec instead of openssl x509). Commented Jan 5, 2024 at 4:38
  • When I looked on the internet, I did not find the answer. After posting this question, I found it with openssl ec as I posted as a comment to @garethTheRed answer. I did not answer my own question as I do not have enough reputation points yet. I prefer the openssl ec to openssl pkey but that is just a perference Commented Jan 8, 2024 at 23:04