Convert a X509 Public key to RSA public key
问题 I have a public key in the following format -----BEGIN PUBLIC KEY----- xxxxxxxx -----END PUBLIC KEY----- I need to convert this into the following format -----BEGIN RSA PUBLIC KEY----- xxxxxxxxx -----END RSA PUBLIC KEY----- Basically, the issue is that I am working with a third party library which is written in Java. The third party library uses Java class "RSAPublicKeySpec" to generate an instance of type RSAPublicKey from a String. The String that I am supplying to this third party library