PemReader.GetPrivateKey

GetPrivateKey(Stream)

Reads private key from stream.

public static RSACryptoServiceProvider GetPrivateKey(Stream pem)
ParameterTypeDescription
pemStreamStream to read from.

Return Value

Certificate that was read.

See Also


GetPrivateKey(string)

Reads private key from PEM file.

public static RSACryptoServiceProvider GetPrivateKey(string path)
ParameterTypeDescription
pathStringPath to file to read from.

Return Value

Certificate that was read.

See Also