WebBrowser control - ignore SSL errors

前端 未结 2 984
不思量自难忘°
不思量自难忘° 2020-12-05 08:12

Many hours of searching has not lead to an answer. We\'re looking for a way that a .NET WebBrowser control can navigate to pages with SSL security problems (self-signed cer

相关标签:
2条回答
  • 2020-12-05 08:50

    the interface you need to implement is IHttpSecurity. See http://jiangsheng.net/2013/07/17/howto-ignoring-web-browser-certificate-errors-in-webbrowser-host/ for an example based on Windows Forms.

    0 讨论(0)
  • 2020-12-05 08:53

    For me it's working using the following code:

    ' automatically accept HTTPS certificates
    ServicePointManager.ServerCertificateValidationCallback = AddressOf AcceptAllCertifications
    

    Hope it will be useful ;)

    0 讨论(0)
提交回复
热议问题