Esempio n. 1
0
        public static void ValidatingCertificate(object sender, SslCertificateValidationEventArgs e)
        {
            Verifier verifier = new Verifier();
            TlsCertificateAcceptance acceptResult = verifier.Verify(e.ServerName, e.CertificateChain);

            if (acceptResult == TlsCertificateAcceptance.Accept)
            {
                e.Accept();
            }
            else
            {
                e.Reject(acceptResult);
            }
        }
Esempio n. 2
0
 private static void Client_ValidateCertificate(object sender, SslCertificateValidationEventArgs e)
 {
     e.Accept();
 }
Esempio n. 3
0
 // Token: 0x06000034 RID: 52 RVA: 0x00003160 File Offset: 0x00001360
 private void Creator_ValidatingCertificate(object sender, SslCertificateValidationEventArgs e)
 {
     Certificate certificate = e.CertificateChain[0];
 }