tls

package
v1.12.8 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 12 Imported by: 6

Documentation

Index

Constants

View Source
const (
	ServCertLocal = "./serv_cert.pem"
)

Variables

View Source
var (
	ServCert           = "/certs/serv_cert.pem"
	ServCertPrefixPath = "/certs/"
	ServKey            = "/certs/serv_key.pem"
)
View Source
var MashupCertPool *x509.CertPool

Functions

func GetServerCredentials

func GetServerCredentials(logger *log.Logger) (credentials.TransportCredentials, error)

func GetTlsConfig

func GetTlsConfig(certName string) (*tls.Config, error)

func GetTransportCredentials

func GetTransportCredentials() (credentials.TransportCredentials, error)

func InitRoot

func InitRoot()

func ReadServerCert

func ReadServerCert(certName string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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