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