Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
crypto/x509: VerifyHostname should ignore port if not present in pattern #15452
x509 certificate verification currently fails for requests that specifies a port, unless the common name pattern in the certificate has the same port specified.
I think this is too strict. If the pattern doesn't have a port, I think the verification should pass for all requests to that host, regardless of port.