Beryl::Certificates::PublicSuffixList
The Public Suffix List (https://publicsuffix.org), used to refuse a
wildcard that covers a whole public suffix such as *.co.uk or
*.s3.amazonaws.com (CA/Browser Forum baseline requirements ยง3.2.2.6).
The list is data/public_suffix_list.dat, pinned by sha256 (see
SHA256) and updated with scripts/update_certificate_data.rb. It is
published under the Mozilla Public License 2.0, whose notice heads the
file. Only ASCII rules (A-labels) are used; the list's rules in Unicode
form are converted by IDNA in browsers and never match the ASCII names a
certificate holds, except through their xn-- form, which the list
does not carry, so those rules are left out.
Constants
The upstream commit the file was taken at.
The sha256 of data/public_suffix_list.dat, checked by a spec.
Class methods
Returns whether name (lowercase, without a final dot) is a public
suffix: a name listed, a name under a listed wildcard and not listed
as an exception, or a single label (the list's implicit * rule).