Skip to content

Commit

Permalink
document the usage of the Certifi CA bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
kelseyhightower committed Jul 25, 2016
1 parent a4540d2 commit 1162e32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions http.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ import (
var httpClient http.Client

func init() {
// Use the Root Certificates bundle from the Certifi project so we don't
// rely on the host OS or container base images for a CA Bundle.
// See https://certifi.io for more details.
certPool, err := gocertifi.CACerts()
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit 1162e32

Please sign in to comment.