certificates

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: GPL-3.0 Imports: 12 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) error

Types

type CAConfig

type CAConfig struct {
	CA        *x509.Certificate
	CAPrivKey *rsa.PrivateKey
	CAPEM     *bytes.Buffer
}

func GenerateCA

func GenerateCA() *CAConfig

type ServerConfig

type ServerConfig struct {
	ServerCertPEM    *bytes.Buffer
	ServerPrivKeyPEM *bytes.Buffer
}

func GenerateServerCertificate

func GenerateServerCertificate(commonName string, dnsNames []string, caConfig *CAConfig) *ServerConfig

Jump to

Keyboard shortcuts

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