Forked from mathiasbynens/get-hsts-preload-list.sh
Created
July 11, 2020 03:49
Star
You must be signed in to star a gist
Get the latest version of https://chromium.googlesource.com/chromium/src/+/master/net/http/transport_security_state_static.json in an automated way and convert it to proper JSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# https://code.google.com/p/chromium/issues/detail?id=226801 | |
url='https://chromium.googlesource.com/chromium/src/net/+/master/http/transport_security_state_static.json?format=TEXT'; | |
curl -#s "${url}" | \ | |
base64 --decode | \ | |
sed '/^ *\/\// d' | \ | |
sed '/^\s*$/d' > hsts.json; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment