/// <summary>Override to review certificate validation decisions.</summary>
protected bool RemoteCertificateValidation(object sender,
X509Certificate cert, X509Chain chain, int depth, VerifyResult result)
{
try {
_ch.Verify(OpenSslCertificateHandler.OpenSslX509ToMonoX509(cert),
default(ISender));
} catch {
return(false);
}
return(result == VerifyResult.X509_V_OK ||
result == VerifyResult.X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT);
}