cacerts: go.pedge.io/cacerts Index | Files

package cacerts

import "go.pedge.io/cacerts"

Package cacerts contains CA certificates from the golang:1.5.1 docker image at /etc/ssl/certs/ca-certificates.crt.

Useful for when docker images are created from the scratch image.

See https://medium.com/@kelseyhightower/optimizing-docker-images-for-static-binaries-b5696e26eb07 for details.

Index

Package Files

cacerts.go var.go

func NewHTTPClient Uses

func NewHTTPClient() *http.Client

NewHTTPClient returns a new *http.Client with certificates attached.

func NewHTTPTransport Uses

func NewHTTPTransport() *http.Transport

NewHTTPTransport returns a new *http.Transport with certificates attached.

func NewTLSConfig Uses

func NewTLSConfig() *tls.Config

NewTLSConfig returns a new *tls.Config with certificates attached.

func NewX509CertPool Uses

func NewX509CertPool() *x509.CertPool

NewX509CertPool returns a new *x509.CertPool with certificates attached.

Package cacerts imports 3 packages (graph) and is imported by 1 packages. Updated 2016-07-15. Refresh now. Tools for package owners.