tls

package
v1.27.8 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 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(insecureSkipVerify bool, logger *log.Logger) (credentials.TransportCredentials, error)

func GetTlsConfig

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

func GetTransportCredentials

func GetTransportCredentials(insecureSkipVerify bool, drone ...*bool) (credentials.TransportCredentials, error)

func GetTransportCredentialsByCert added in v1.27.5

func GetTransportCredentialsByCert(insecureSkipVerify bool, serverName *string, cert *tls.Certificate) (credentials.TransportCredentials, error)

func InitRoot

func InitRoot()

func ReadServerCert

func ReadServerCert(certName string, drone ...*bool) ([]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