setupserver

package
v0.0.0-...-d8f7d12 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

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