Is it possible to use ServicePointManager with Webbrowser control?
Posted
by paul77
on Stack Overflow
See other posts from Stack Overflow
or by paul77
Published on 2008-10-08T09:07:21Z
Indexed on
2010/04/11
3:03 UTC
Read the original article
Hit count: 293
I want to disable "Alert window" that I get from login page of one HTTPS site with "untrusted certificate".
ServicePointManager is used for WebRequest/WebResponse:
> public static bool > ValidateServerCertificate(object > sender, X509Certificate certificate, > X509Chain chain, SslPolicyErrors > sslPolicyErrors) { > return true; } > > ServicePointManager.ServerCertificateValidationCallback > = new RemoteCertificateValidationCallback(ValidateServerCertificate);
but how can I use it with Webbrowser control?
© Stack Overflow or respective owner