cacertutil

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPClientWithCerts

func NewHTTPClientWithCerts(localCertFile string) (*http.Client, error)

NewHTTPClientWithCerts creates a fresh net/http.Client populated with some root CA certificates from file. Argument must point to an existing file with PEM formatted certificates.

Based on https://forfuncsake.github.io/post/2017/08/trust-extra-ca-cert-in-go-app/

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL