Ejemplo n.º 1
0
 public bool CertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
 {
     HttpsSSLServerAuthenticationEventArgs httpsSSLServerAuthenticationEventArgs = new HttpsSSLServerAuthenticationEventArgs();
     if (this._OnSSLServerAuthentication != null)
     {
         this._OnSSLServerAuthentication(httpsSSLServerAuthenticationEventArgs);
     }
     return httpsSSLServerAuthenticationEventArgs.Accept;
 }
Ejemplo n.º 2
0
 private void https_OnSSLServerAuthentication(HttpsSSLServerAuthenticationEventArgs e)
 {
     e.Accept = true;
     this.sslEnabled = true;
 }