This question already has an answer here:
I'm trying to sign a transaction using SSL. I already generated the raw transaction and hashed it properly. So I'd like to sign the following hash:
c88568c9a85d52d07432dee9ee8dd1c63a4bfea6f754d2ec94f50015ae91a3f3, using the following private key:
I have looked around and figured the following command:
openssl dgst -sha256 -hex -sign key.pem hash.txt. Great! (I think). How can I convert my private key to .pem file so SSL can use it to sign?