certificates

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteCertificates

func WriteCertificates(filepath string, caConfig *CAConfig, serverConfig *ServerConfig) (err error)

Types

type CAConfig

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

func NewCACertificate added in v0.7.0

func NewCACertificate() (ca CAConfig, err error)

func (*CAConfig) GetCertificatePEM added in v0.7.0

func (c *CAConfig) GetCertificatePEM() *bytes.Buffer

type ServerConfig

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

func NewServerCertificate added in v0.7.0

func NewServerCertificate(caConfig *CAConfig, commonName string, dnsNames []string) (server ServerConfig, err error)

Jump to

Keyboard shortcuts

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