fromPem

fun fromPem(pemEncoding: String, publicKey: RsaPublicKey? = null): RsaPrivateKey

Parses an RSA private key from a PEM-encoded string (either PKCS#1 or PKCS#8).

Return

the parsed RsaPrivateKey.

Parameters

pemEncoding

the PEM-encoded string.

publicKey

optional known RsaPublicKey.