cert

package
v0.0.0-...-04d108c Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertAuth

type CertAuth struct {
	ExpiryTime int
	CAName     pkix.Name
	CertReq    *x509.Certificate
	Key        *rsa.PrivateKey
	PemCert    string
	PemKey     string
}

func CAFromConfig

func CAFromConfig(cfg config.Config) CertAuth

func (*CertAuth) GenCert

func (ca *CertAuth) GenCert() error

func (*CertAuth) Write

func (ca *CertAuth) Write(path string) error

type CertClient

type CertClient struct {
	Name       string
	ExpiryTime int
	CAName     pkix.Name
	IP         []string
	DNS        []string
	Key        *rsa.PrivateKey
	CertReq    *x509.Certificate
	PemCert    string
	PemKey     string
}

func CertsFromConfig

func CertsFromConfig(cfg config.Config) []CertClient

func (*CertClient) GenCert

func (cc *CertClient) GenCert(ca *CertAuth) error

func (*CertClient) Write

func (cc *CertClient) Write(path string) error

Jump to

Keyboard shortcuts

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