Documentation ¶
Overview ¶
Package setupserver assists in setting up TLS credentials for a server.
Package setupserver provides convenience functions for setting up a server with TLS credentials.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupTls ¶
func SetupTls() error
SetupTls loads client and server certificates from files and registers them with the lib/srpc package. The following command-line flags are registered with the standard flag package:
-caFile: Name of file containing the root of trust -certFile: Name of file containing the SSL certificate -keyFile: Name of file containing the SSL key
func SetupTlsClientOnly ¶
func SetupTlsClientOnly() error
SetupTlsClientOnly loads a client certificate from files and registers it with the lib/srpc package.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.