简体   繁体   English

Chrome 无效的 SSL 证书安全警告

[英]Chrome Invalid SSL Certificate Security Warning

I ran into an interesting problem today using Chrome and I'm hoping there is a better way to fix it than what I ended up doing.我今天在使用 Chrome 时遇到了一个有趣的问题,我希望有比我最终做的更好的方法来解决它。

The issue starts with an invalid SSL certificate on a site that I'm configuring.问题始于我正在配置的站点上的 SSL 证书无效。 In Chrome it's possible to advance past this screen using a link which adds a security exception for the current domain so that you don't have to view this warning message again.在 Chrome 中,可以使用为当前域添加安全例外的链接跳过此屏幕,这样您就不必再次查看此警告消息。

您的连接不是私密的 Chrome 警告

It's also possible to clear this warning by going to the site with the exception then clicking the Not secure text and choosing the Re-enable warnings option.也可以通过访问该站点(有例外)然后单击“不安全”文本并选择“重新启用警告”选项来清除此警告。

在 Chrome 中重新启用警告选项

Now my problem, I have a couple different redirects in place on the site that will redirect my .com and .bank domains to the primary .net domain.现在我的问题是,我在站点上有几个不同的重定向,它们会将我的 .com 和 .bank 域重定向到主要的 .net 域。 While developing I added security exceptions for all three of these domains.在开发过程中,我为这三个域添加了安全例外。 This becomes and issue when testing that my SSL certificate is configured properly.在测试我的 SSL 证书配置是否正确时,这会成为问题。 I want to clear out Chrome's stored exception for the .com domain - but I cannot do so using the Re-enable warnings option because as soon as I arrive at the page Chrome sees that an exception is already stored and proceeds to load the page normally which then gets redirected to the .net domain.我想清除 Chrome 为 .com 域存储的异常 - 但我不能使用重新启用警告选项来清除,因为一旦我到达页面,Chrome 就会看到异常已经存储并继续正常加载页面然后被重定向到 .net 域。 Because of this there is no point where I can actually clear out the bypassed security warning in Chrome...因此,我实际上无法清除 Chrome 中绕过的安全警告...

The only way I've been able to find to clear out these exceptions is to use the Reset option in Chrome's settings, which is not something I want to do regularly.我能够找到清除这些异常的唯一方法是使用 Chrome 设置中的重置选项,这不是我想要经常做的事情。 I'm wondering if there is a hidden settings page in Chrome that lists all of the bypassed security warnings so that I may clear them out individually.我想知道 Chrome 中是否有一个隐藏的设置页面,列出了所有绕过的安全警告,以便我可以单独清除它们。

To "Re-enable warnings" for all SSL warnings if you don't want to clear your history (or if you dont know all the exemptions you have in place), you can close Chrome and edit: "C:\\Users\\USER\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Preferences" and set ssl_cert_decisions":{},"如果您不想清除历史记录(或者如果您不知道您拥有的所有豁免),要为所有 SSL 警告“重新启用警告”,您可以关闭 Chrome 并编辑: "C:\\Users\\USER\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Preferences"并设置ssl_cert_decisions":{},"

Stored in the JSON-path:存储在 JSON-path 中:

profile > content_settings > exceptions > ssl_cert_decisions个人资料 > content_settings > 例外 > ssl_cert_decisions

Or you can change the decision_expiration_time of the specific exemption to be equal to the last_modified time或者您可以将特定豁免的decision_expiration_time 更改为等于last_modified 时间

Example: "ssl_cert_decisions":{"https://expired.badssl.com:443,*":{"last_modified":"13235055329485008","setting":{"cert_exceptions_map":{"-201cgaDTf2DD6Cj0N6/tKvudkzDuRBA3GwKd8T9hE7mHhQ=":1},"decision_expiration_time":"13235055329485008","version":1}}}示例: "ssl_cert_decisions":{"https://expired.badssl.com:443,*":{"last_modified":"13235055329485008","setting":{"cert_exceptions_map":{"-201cgaDTf2DD6Cj0N6/tKvudkzDuRBA3GwKd8T9hE7mHhQ=":1},"decision_expiration_time":"13235055329485008","version":1}}}

you will have to clear the browsing data for that site, the easiest way I found to do this is (Ctrl+Shift+Del) to bring the clear browser data window up then set time range to 1 hour, choose browsing history only then click clear data.您必须清除该站点的浏览数据,我发现最简单的方法是(Ctrl+Shift+Del)打开清除浏览器数据窗口,然后将时间范围设置为 1 小时,选择浏览历史记录,然后单击清除数据。 Hope this is useful.希望这是有用的。

清除浏览器数据对话框

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM