How do we convert a String from PEM to DER format
问题 Have a String being sent from in the below format: -----BEGIN RSA PUBLIC KEY----- MIGHAoGBANAahj75ZIz9nXqW2H83nGcUao4wNyYZ9Z1kiNTUYQl7ob/RBmDzs5rY mUahXAg0qyS7+a55eU/csShf5ATGzAXv+DDPcz8HrSTcHMEFpuyYooX6PrIZ07Ma XtsJ2J4mhlySI5uOZVRDoaFY53MPQx5gud2quDz759IN/0gnDEEVAgED -----END RSA PUBLIC KEY----- How do i construct a PublicKey Object from this string ? Have tried the below Remove the header and footer and base64 decode the buffer public static PublicKey getFromString(String keystr) throws