by davewritescode · 3y ago · 0 comments
https://github.com/golang/go/issues/39568
As far as I know every other language standard library still allows CN to be used to validate the hostname when the SAN field doesn’t exist.
As discussed in the link, CommonName has been deprecated in x.509 serverAuth certificates for decades, and all major browsers dropped support for the field (even as a fallback) years ago.
Also, the reason CN is deprecated has nothing to do with security but the maximum length of the field in the spec. Chrome ignores it but every cert I’ve seen recently still includes it for legacy compatibility.
It’s not a huge dealbreaker but it forced me to go make 3rd parties regenerate their certs before I could upgrade my version of go.