Convert RSA pem key String to der byte[]
问题 I'm trying to convert an RSA pem key (contained in a String) to a byte[], like this method does when given a .pem file FileInputStream: http://jets3t.s3.amazonaws.com/api/org/jets3t/service/security/EncryptionUtil.html#convertRsaPemToDer(java.io.InputStream) I've tried this: String pemKey = "-----BEGIN RSA PRIVATE KEY-----\r\n" + "{base64 encoded key part omitted}\r\n" + "{base64 encoded key part omitted}\r\n" + "{base64 encoded key part omitted}\r\n" + "-----END RSA PRIVATE KEY-----"; String