我收到了关于作为https访问非https站点的警告
尝试通过将该命令添加到快捷目标来禁用它,但它不起作用。
-ignore-urlfetcher-cert-requests "C:\Program (x86)\Google\Chrome\Application\chrome.exe“
是否有任何可能的方法禁用网站的ssl检查?
发布于 2015-07-24 14:36:40
要禁用与证书相关的错误窗口,可以从控制台启动Chrome并使用以下选项:--ignore-certificate-errors
。
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --ignore-certificate-errors
您应该将其用于测试目的。更完整的选项列表如下:http://peter.sh/experiments/chromium-command-line-switches/
发布于 2017-10-12 06:22:03
Mac用户请从终端执行以下命令以禁用证书警告。
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --ignore-certificate-errors --ignore-urlfetcher-cert-requests &> /dev/null
请注意,这也将使Google在URL栏中将所有HTTPS站点标记为不安全。
发布于 2017-08-04 14:48:28
在我的例子中,我正在开发一个ASP.Net MVC5 web应用程序,当我开始使用服务工作者时,本地开发机器上的证书错误(IISExpress证书)开始成为一个实际问题。Chrome根本不会注册我的服务工作者,因为证书错误。
然而,我确实注意到,在我的自动Selenium浏览器测试中,Chrome似乎只是“忽略”了所有这些问题(例如,关于一个不安全站点的警告页面),所以我问自己: Selenium如何启动Chrome来运行其测试,它是否也解决了服务工作者的问题?
通过在Windows上使用过程资源管理器,我能够找到Selenium启动Chrome的命令行参数:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-background-networking --disable-client-side-phishing-detection --disable-default-apps --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --disable-web-resources --enable-automation --enable-logging --force-fieldtrials=SiteIsolationExtensions/Control --ignore-certificate-errors --log-level=0 --metrics-recording-only --no-first-run --password-store=basic --remote-debugging-port=12207 --safebrowsing-disable-auto-update --test-type=webdriver --use-mock-keychain --user-data-dir="C:\Users\Sam\AppData\Local\Temp\some-non-existent-directory" data:,
这里有很多参数,我最终没有做必要测试,但是如果我以这种方式运行Chrome,我的服务人员注册并按预期工作。
唯一起作用的是--用户-数据-dir参数,它可以设置为一个不存在的目录(如果不提供参数,事情就无法工作)。
希望这能帮助其他有类似问题的人。我在使用Chrome 60.0.3112.90。
https://stackoverflow.com/questions/26388405
复制相似问题