RSA Key Question

S

_Stud

I want to hardcode a public RSA key into a Ruby script so there is no
reliance on an external '.pem' file. When I do that the object is of
type string and OpenSSL throws an error.

How can I get the "pub_key = OpenSSL::pKey::RSA.new(<hardcoded public
key>)" to recognize the key?

Thanks,
_Stud
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Staff online

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top