I have a .key file which is PEM formatted private key file. I didn\'t make this file but I got this from somewhere.
I wanted to see its MD5 hash with openssl tool li
this could happen if you are trying to use your public key to create certificate instead of your private key. you should use private key