Skip to content

Commit 2c2980a

Browse files
committed
doc/go1.16: pre-announce GODEBUG=x509ignoreCN=0 removal in Go 1.17
For #40700 Updates #24151 Change-Id: Id63dcaad238f7534bfce8902b8cb3efd8db5942d Reviewed-on: https://go-review.googlesource.com/c/go/+/266539 Trust: Filippo Valsorda <filippo@golang.org> Trust: Katie Hockman <katie@golang.org> Reviewed-by: Katie Hockman <katie@golang.org>
1 parent 37a32a1 commit 2c2980a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/go1.16.html

+7
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,13 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
501501

502502
<dl id="crypto/x509"><dt><a href="/pkg/crypto/x509/">crypto/x509</a></dt>
503503
<dd>
504+
<p>
505+
The <code>GODEBUG=x509ignoreCN=0</code> flag will be removed in Go 1.17.
506+
It enables the legacy behavior of treating the <code>CommonName</code>
507+
field on X.509 certificates as a host name when no Subject Alternative
508+
Names are present.
509+
</p>
510+
504511
<p><!-- CL 235078 -->
505512
<a href="/pkg/crypto/x509/#ParseCertificate">ParseCertificate</a> and
506513
<a href="/pkg/crypto/x509/#CreateCertificate">CreateCertificate</a> both

0 commit comments

Comments
 (0)