Skip to content

Commit b137746

Browse files
committed
crypto/x509: move and update the SSL_CERT_FILE and SSL_CERT_DIR docs
Fixes #37907 Change-Id: Ia077de6dcc74ed761d278eab4efbf45e151429b8 Reviewed-on: https://go-review.googlesource.com/c/go/+/239747 Run-TryBot: Filippo Valsorda <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Katie Hockman <[email protected]>
1 parent 3b2f67a commit b137746

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/crypto/x509/cert_pool.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,15 @@ func (s *CertPool) copy() *CertPool {
4747

4848
// SystemCertPool returns a copy of the system cert pool.
4949
//
50-
// Any mutations to the returned pool are not written to disk and do
51-
// not affect any other pool returned by SystemCertPool.
50+
// On Unix systems other than macOS the environment variables SSL_CERT_FILE and
51+
// SSL_CERT_DIR can be used to override the system default locations for the SSL
52+
// certificate file and SSL certificate files directory, respectively. The
53+
// latter can be a colon-separated list.
5254
//
53-
// New changes in the system cert pool might not be reflected
54-
// in subsequent calls.
55+
// Any mutations to the returned pool are not written to disk and do not affect
56+
// any other pool returned by SystemCertPool.
57+
//
58+
// New changes in the system cert pool might not be reflected in subsequent calls.
5559
func SystemCertPool() (*CertPool, error) {
5660
if runtime.GOOS == "windows" {
5761
// Issue 16736, 18609:

src/crypto/x509/x509.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
// Package x509 parses X.509-encoded keys and certificates.
6-
//
7-
// On UNIX systems the environment variables SSL_CERT_FILE and SSL_CERT_DIR
8-
// can be used to override the system default locations for the SSL certificate
9-
// file and SSL certificate files directory, respectively.
106
package x509
117

128
import (

0 commit comments

Comments
 (0)