Skip to content
Advertisement

Tag: pem

extract private key from .pem file

I want my code to extract private key from my pem file . My pem file looks like this -> —–BEGIN RSA PRIVATE KEY—– some encrypted code —–END RSA PRIVATE KEY—– . I have the same code in ruby but i’m not able to do this in javascript. Answer Keep in mind, this will only work if there is one

Advertisement