private ReadCertificate ( string endMarker ) : |
||
endMarker | string | |
return |
private X509Certificate ReadCertificate(
string endMarker)
{
byte[] bytes = ReadBytes(endMarker);
try
{
return new X509CertificateParser().ReadCertificate(bytes);
}
catch (Exception e)
{
throw new PemException("problem parsing cert: " + e.ToString());
}
}