Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFailedToAddCAPem = errors.New("failed to add server ca's certificate") ErrFailedToLoadSystemCredentials = errors.New("failed to load system credentials") )
Functions ¶
func LoadSystemCredentials ¶
func LoadSystemCredentials() (credentials.TransportCredentials, error)
LoadSystemCredentials loads the system credentials
Returns:
- credentials.TransportCredentials: the TLS credentials
- error: error if any
func LoadTLSCredentials ¶
func LoadTLSCredentials(pemServerCAPath string) ( credentials.TransportCredentials, error, )
LoadTLSCredentials loads the TLS credentials
Parameters:
- pemServerCAPath: path to the PEM file containing the CA certificate
Returns:
- credentials.TransportCredentials: the TLS credentials
- error: error if any
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.