C# WebBrowser Control - ignore website security wa

2019-08-09 03:12发布

问题:

Possible Duplicate:
How to disable “Security Alert” window in Webbrowser control

I'm currently using WebBrowser (System.Windows.Forms) in my program. When I try to access some websites over https, the message "There is a problem with your websites security certificate" appears. Is there any way I can get WebBrowser to ignore these types of warnings?

There are solutions for WebClient: How to ignore a certificate error with c# 2.0 WebClient - without the certificate But those solutions do not apply to this problem, as WebBrowser seems to ignore whatever is set in ServicePointManager.

回答1:

You might want to look at http://www.codeproject.com/KB/shell/WebBrowserControlDialogs.aspx from the question Access Intranet via SSL using WebBrowser Winforms Control