cert

package
v0.0.0-...-9e9b179 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const CaRootKeyName = "rootCA-key.pem"

CaRootKeyName certificate key file name

View Source
const CaRootName = "rootCA.pem"

CaRootName certificate file name

Variables

This section is empty.

Functions

This section is empty.

Types

type Cert

type Cert struct {
	CertutilPath  string
	CaFileName    string
	CaFileKeyName string
	CaPath        string
	CaCert        *x509.Certificate
	CaKey         crypto.PrivateKey
	// contains filtered or unexported fields
}

Cert certificate structure

func (*Cert) Check

func (c *Cert) Check() bool

Check if the certificate is installed

func (*Cert) CreateCA

func (c *Cert) CreateCA() error

CreateCA creating a root certificate

func (*Cert) Install

func (c *Cert) Install() bool

Install certificate installation

func (*Cert) LoadCA

func (c *Cert) LoadCA() error

LoadCA certificate reading

func (*Cert) MakeCert

func (c *Cert) MakeCert(hosts []string, path string) error

MakeCert Create certificates for domains

func (*Cert) Uninstall

func (c *Cert) Uninstall()

Uninstall deleting certificate

Jump to

Keyboard shortcuts

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