certs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCertificates

func LoadCertificates(
	t CertificateType,
	cfg Config,
	serverName string,
) (credentials.TransportCredentials, error)

LoadCertificates ..

func LoadClientCertificates

func LoadClientCertificates(cfg Config, serverName string) (credentials.TransportCredentials, error)

LoadClientCertificates ..

func LoadServerCertificates

func LoadServerCertificates(cfg Config) (credentials.TransportCredentials, error)

LoadServerCertificates ..

Types

type CertificateType

type CertificateType uint8

CertificateType ..

const (
	// CertificateTypeServer ..
	CertificateTypeServer CertificateType = iota

	// CertificateTypeClient ..
	CertificateTypeClient
)

type Config

type Config struct {
	Disable bool
	CA      string
	Cert    string
	Key     string
}

Config ..

Jump to

Keyboard shortcuts

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