go/doc/next/6-stdlib
Roland Shoemaker e8d9561997 crypto/x509: implement policy validation
Implement support for parsing the various policy related extensions,
and for validating the policy graph for chains.

Policy validation is only run if VerifyOptions.CertificatePolicies is
set. Policy validation is run after chains are built. If the computed
policy graph for a chain is invalid, the chain is removed from the set
of returned chains.

This implements the RFC 5280 algorithm as updated by
RFC 9618 [0].

Fixes #68484

[0] https://www.rfc-editor.org/rfc/rfc9618.html

Change-Id: I576432a47ddc404cba966c2b1995365944b8bd26
Reviewed-on: https://go-review.googlesource.com/c/go/+/628616
Auto-Submit: Roland Shoemaker <roland@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-11-22 01:28:52 +00:00
..
99-minor crypto/x509: implement policy validation 2024-11-22 01:28:52 +00:00
0-heading.md doc: initialize next directory for Go 1.24 2024-07-22 17:55:04 +00:00
1-os-root.md os: add Root 2024-11-20 23:20:45 +00:00
1-weak.md weak: move internal/weak to weak, and update according to proposal 2024-11-18 22:29:23 +00:00
2-pbkdf2.md crypto/pbkdf2: init package 2024-11-21 20:38:05 +00:00
3-hkdf.md crypto/hkdf: init package 2024-11-21 22:55:17 +00:00