I am trying to initialize OpenSSL::PKey::RSA using a public key, and it is not working.
Following is the key pair:
-----BEGIN RSA PRIVATE KEY-----
MI
I was facing the same issue and I tried lot of different solutions given across internet.
But the actual problem was with the key
that I was providing.
The formatting of the key should be proper. There should not be any extra character or \n , \t
.
I hope this might help you. So, please check your key once again.