Documentation
¶
Overview ¶
Package setupclient assists in setting up TLS credentials for a client.
Package setupclient provides convenience functions for setting up a client (tool) with TLS credentials.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCertDirectory ¶
func GetCertDirectory() string
GetCertDirectory returns the directory containing the client certificates.
func SetupTls ¶
SetupTls loads zero or more client certificates from files and registers them with the lib/srpc package. The following command-line flags are registered with the standard flag package:
-certDirectory: Name of directory containing user SSL certificates
func SetupTlsWithParams ¶ added in v0.13.0
SetupTlsWithParsms loads zero or more client certificates from files and registers them with the lib/srpc package. The following command-line flags are registered with the standard flag package:
-certDirectory: Name of directory containing user SSL certificates
Types ¶
type Params ¶ added in v0.13.0
type Params struct {
IgnoreMissingCerts bool // true: ignore if certs missing.
Logger log.DebugLogger
}
Click to show internal directories.
Click to hide internal directories.