SyntaxFix
Write A Post
Hire A Developer
Questions
I assume you want the DER encoded version of your PEM private key.
openssl rsa -outform der -in private.pem -out private.key