@@ -386,6 +386,23 @@ <h3 id="cgo">Cgo</h3>
386
386
documentation</ a > for more information.
387
387
</ p >
388
388
389
+ < h3 id ="commonname "> X.509 CommonName deprecation</ h3 >
390
+
391
+ < p > <!-- CL 231379 -->
392
+ The deprecated, legacy behavior of treating the < code > CommonName</ code >
393
+ field on X.509 certificates as a host name when no Subject Alternative Names
394
+ are present is now disabled by default. It can be temporarily re-enabled by
395
+ adding the value < code > x509ignoreCN=0</ code > to the < code > GODEBUG</ code >
396
+ environment variable.
397
+ </ p >
398
+
399
+ < p >
400
+ Note that if the < code > CommonName</ code > is an invalid host name, it's always
401
+ ignored, regardless of < code > GODEBUG</ code > settings. Invalid names include
402
+ those with any characters other than letters, digits, hyphens and underscores,
403
+ and those with empty labels or trailing dots.
404
+ </ p >
405
+
389
406
< h3 id ="minor_library_changes "> Minor changes to the library</ h3 >
390
407
391
408
< p >
@@ -523,15 +540,6 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
523
540
certificates with trailing dots.
524
541
</ p >
525
542
526
- < p > <!-- CL 231379 -->
527
- The deprecated, legacy behavior of treating the < code > CommonName</ code >
528
- field as a hostname when no Subject Alternative Names are present is now
529
- disabled by default. It can be temporarily re-enabled by adding the value
530
- < code > x509ignoreCN=0</ code > to the < code > GODEBUG</ code > environment
531
- variable. If the < code > CommonName</ code > is an invalid hostname, it's
532
- always ignored.
533
- </ p >
534
-
535
543
< p > <!-- CL 217298 -->
536
544
The new < a href ="/pkg/crypto/x509/#CreateRevocationList "> < code > CreateRevocationList</ code > </ a >
537
545
function and < a href ="/pkg/crypto/x509/#RevocationList "> < code > RevocationList</ code > </ a > type
0 commit comments