certificate

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertConfigCarrier

type CertConfigCarrier struct {
	ServerTLSConf *tls.Config
	ClientTLSConf *tls.Config
	// contains filtered or unexported fields
}

CertConfigCarrier is a top level structure for certificates

func NewCertConfigCarrier

func NewCertConfigCarrier(r io.Reader) *CertConfigCarrier

NewCertConfigCarrier creates new certificate wrapper

func (*CertConfigCarrier) GobDecode

func (c *CertConfigCarrier) GobDecode(b []byte) error

GobDecode the config

func (CertConfigCarrier) GobEncode

func (c CertConfigCarrier) GobEncode() ([]byte, error)

GobEncode the config

func (*CertConfigCarrier) Make

func (c *CertConfigCarrier) Make() error

Make creates a server certificate and the corresponding client configuration The server certificate is signed with a ad-hoc creation of a CA certificate. The private key is generated

Jump to

Keyboard shortcuts

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