Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
Pool is a storage for RootCAs, used in http requests
func MakePool ¶
MakePool copies the system CA pool and appends provided certificates, if any. Accepts zero or more certificate files as arguments. Empty strings are ignored
func (Pool) AppendCAs ¶ added in v0.3.5
AppendCAs adds select known, trusted root certificate authorities to the pool Currently adds: Comodo
func (Pool) AppendFromFiles ¶
AppendFromFiles loads the certs from a slice of filenames to the cert pool
Click to show internal directories.
Click to hide internal directories.