Closed philiprbrenan closed 2 years ago
You have a full certificate here, not just a key. So, you have to parse the whole cert structure first:
my $pub = Crypt::OpenSSL::RSA->new_public_key(Crypt::OpenSSL::X509->new_from_string(pub())->pubkey());
Thanks for your help!
I am trying to use the following pem key but I get the error message: unrecognized key format. I believe the key is valid. Please tell me how to load it into Crypt::OpenSSL::RSA ? Thanks!