GetPrivateKey

PemReader.GetPrivateKey method (1 of 2)

Reads private key from stream.

public static RSACryptoServiceProvider GetPrivateKey(Stream pem)
Parameter Type Description
pem Stream Stream to read from.

Return Value

Certificate that was read.

See Also


PemReader.GetPrivateKey method (2 of 2)

Reads private key from PEM file.

public static RSACryptoServiceProvider GetPrivateKey(string path)
Parameter Type Description
path String Path to file to read from.

Return Value

Certificate that was read.

See Also