You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that the certificate is invalid for that subdomain. The wildcard cert *.badssl.com should not match subdomain.preloaded-hsts.badssl.com as per RFC
Specifically:
Matching is performed using the matching rules specified by
[RFC2459]. If more than one identity of a given type is present in
the certificate (e.g., more than one dNSName name, a match in any one
of the set is considered acceptable.) Names may contain the wildcard
character * which is considered to match any single domain name
component or component fragment. E.g., *.a.com matches foo.a.com but
not bar.foo.a.com. f*.com matches foo.com but not bar.com.
Right now servo & hyper don't do any validation on TLS hostnames. I believe this is already documented as a problem in hyperium/hyper#472 and #4954
Bleh, you're right not sure why I typed HSTS pinning.
As for the wildcard bit, it's not clear to me whether it's correct or not for HSTS to use the wildcard rule there, it's clear that Chrome treats the wildcard as matching multiple path components.
Activity
frewsxcv commentedon Nov 18, 2015
Duplicate of #6106?
alex commentedon Nov 18, 2015
@frewsxcv Nope, HSTS and HPKP are different.
samfoo commentedon Dec 2, 2015
"HSTS pinning" doesn't make any sense to me. I just checked and when servo navigates to...
http://subdomain.preloaded-hsts.badssl.com/
...it correctly sees that the subdomain requires secure loading and upgrades the connection to https://subdomain.preloaded-hsts.badssl.com/
The current HSTS preload includes:
The problem is that the certificate is invalid for that subdomain. The wildcard cert
*.badssl.comshould not matchsubdomain.preloaded-hsts.badssl.comas per RFCSpecifically:
Right now servo & hyper don't do any validation on TLS hostnames. I believe this is already documented as a problem in hyperium/hyper#472 and #4954
alex commentedon Dec 13, 2015
Bleh, you're right not sure why I typed HSTS pinning.
As for the wildcard bit, it's not clear to me whether it's correct or not for HSTS to use the wildcard rule there, it's clear that Chrome treats the wildcard as matching multiple path components.
nox commentedon Apr 8, 2017
Pretty sure we support HSTS now.