cert

package
v0.0.0-...-171f271 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupTLS

func SetupTLS(tlsConfig config.TLSConfig) (tlsCredentials credentials.TransportCredentials, err error)

SetupTLS sets up TLS for the server

Types

type CertInfo

type CertInfo struct {
	// contains filtered or unexported fields
}

func (*CertInfo) GenerateCerts

func (c *CertInfo) GenerateCerts(tlsConf config.TLSConfig) (tlsCredentials credentials.TransportCredentials, err error)

func (*CertInfo) GenerateClientCert

func (c *CertInfo) GenerateClientCert() (err error)

func (*CertInfo) GenerateServerCert

func (c *CertInfo) GenerateServerCert() (tlsCredentials credentials.TransportCredentials, err error)

Jump to

Keyboard shortcuts

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