Pool returns a new x509.CertPool containing a set of known WebPKI intermediates chaining to roots in the Mozilla Root Program. These certificates must not be used as trusted roots, but can be used as the Intermediates pool in x509.VerifyOptions. The returned CertPool can be modified safely, for ex
()
| 54 | // intermediates provided by the server, and multiple invocations return |
| 55 | // distinct CertPools. |
| 56 | func Pool() *x509.CertPool { |
| 57 | return copyCertPool(pool()) |
| 58 | } |
| 59 | |
| 60 | // VerifyConnection is a function that can be used as the VerifyConnection |
| 61 | // callback in a tls.Config for a client connection. |