wpf 调用 WebBrowser 打开https 网页出错 http网页正常

wpf 调用 WebBrowser 打开https 网页出错 http网页正常
wpf 调用 WebBrowser 打开https 网页出错 http网页正常
wpf 调用 WebBrowser 打开https 网页出错 http网页正常
wpf 调用 WebBrowser 打开https 网页出错 http网页正常
wpf 调用 WebBrowser 打开https 网页出错 http网页正常

用ChromiumWebBrowser吧,WebBrowser 老不好用了,问题可多了
nuget搜索CefSharp.Wpf
使用代码如下

 if (!Cef.IsInitialized)
            {
                var setting = new CefSettings();
                //设置语言 
                setting.Locale = "zh-CN";
                //cef设置userAgent
                setting.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36";
                //配置浏览器路径

                setting.CefCommandLineArgs.Add("--ignore-urlfetcher-cert-requests", "1");//解决证书问题
                setting.CefCommandLineArgs.Add("--ignore-certificate-errors", "1");//解决证书问题
                Cef.Initialize(setting, performDependencyCheck: true, browserProcessHandler: null);
            }
            web = new ChromiumWebBrowser()
            {
                Address = ConfigurationManager.AppSettings["SecurityAddress"]
            };
            dpCef.Children.Add(web);