firefox - 解析 Firefox HSTS 预加载列表

标签 firefox ssl hsts

我需要解析Mozilla的HSTS预加载列表,在Mozilla的开发者论坛上提到:https://developer.mozilla.org/en-US/docs/Web/Security/HTTP_strict_transport_security

如“Firefox HSTS预加载列表咨询:https://dxr.mozilla.org/comm-central/source/mozilla/security/manager/ssl/nsSTSPreloadList.inc”请解释一下此文件中提到的格式和注释。

Chrome 提供 JSON 格式的 HSTS 预加载列表,这是不言自明的。

最佳答案

nsSTSPreloadList.inc 是 C++ 代码,从 chromium/src/net/+/master/http/transport_security_state_static.json 生成.

生成它的代码是:http://mxr.mozilla.org/mozilla-central/source/security/manager/tools/getHSTSPreloadList.js -- 你可以从中找出输出格式。

顺便说一句,生成文件的格式was recently changed ,因此答案取决于您感兴趣的 Firefox 版本。

使用当前格式,看起来您可以提取如下所示的注释:/* hostname, true */ - 并完成它。

关于firefox - 解析 Firefox HSTS 预加载列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36468039/

相关文章:

JQuery .submit 方法在 Firefox 中不起作用

java - 使用 java 使用 REST API - SSLHandshakeException

asp.net-mvc - 同时使用 NWebSec.Mvc 和 NWebSec.OWIN 时,是否需要在 2 个地方配置安全性?

selenium - org.openqa.selenium.remote.ProtocolHandshake createSession 信息 : Attempting bi-dialect session with Selenium Grid

css - 无法从 Chrome 或 Firefox 中的超链接 IMG 中删除边框(在 IE8 中工作)

javascript - (Firefox?) `console.log( iframe )` + 检查 `contentWindow` 与 `console.log( iframe.contentWindow )` 之间的差异 - 不同的输出

java - Chrome/Firefox 和 Jetty HTTPS

asp.net - 从 "https://www"重定向到 "https://"

asp.net - 在重定向到 web.config 中的 www 子域期间在域根上添加 HSTS http header