Is it possible to use ServicePointManager with Webbrowser control?
- by paul77
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?