0 votes

ReadPrivateKeyFromFile method does not exist.
Where are .ReadPrivateKeyFromFile as it does not belong from pemreader

edited by

1 Answer

0 votes

ReadPrivateKeyFromFile is a method of PemReader class in Limilabs.Cryptography namespace:

 public RSACryptoServiceProvider ReadPrivateKeyFromFile(string filename)

It most certainly exits, and can be used to read private key from a PEM file (key enclosed inside BEGIN RSA PRIVATE KEY / BEGIN PRIVATE KEY).

by (298k points)