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; }
private void https_OnSSLServerAuthentication(HttpsSSLServerAuthenticationEventArgs e) { e.Accept = true; this.sslEnabled = true; }