Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockAllCAs ¶
BlockAllCAs returns an HSTS/HPKP rule (serializable to Chromium JSON format) that blacklists all built-in CA's from signing certs for subdomains of the given domain name. It doesn't include the domain name. It has only been tested with TLD's; it is unclear whether the rule will have any undesired effects if applied to a 2nd-level (or higher level) domain name.
func DNSHash ¶
DNSHash converts an FQDN to DNS wire format, takes the SHA256 of it, and then returns the result as a base64-encoded string. This happens to be how Chromium's HSTS/HPKP database internally stores domain names.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.