TextReader trCer = new StreamReader("C:\\Test.key.pem");
PemReader rdCer = new PemReader(trCer);
X509Certificate Cert = (X509Certificate)rdCer.ReadObject(); //Returns nothing here
AsymmetricKeyParameter pk = Cert.GetPublicKey(); //here mark error because pk is null
What should I do to get back a valid object?