certificate

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CA

type CA struct {
	Cert    *x509.Certificate
	PrivKey *rsa.PrivateKey
	PEM     []byte
}

func NewCA

func NewCA() *CA

func (*CA) NewCert

func (ca *CA) NewCert(dnsNames ...string) *Cert

type Cert

type Cert struct {
	CA      *CA
	PrivKey []byte
	PEM     []byte
}

func (*Cert) ToMap

func (cert *Cert) ToMap() map[string][]byte

Jump to

Keyboard shortcuts

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