cert

package module
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: BSD-3-Clause Imports: 28 Imported by: 3

README

Cert

Fork of https://github.com/FiloSottile/mkcert (up-to-date as of Mar 22 2023 - 2a46726cebac0ff4e1f133d90b4e4c42f1edf44a) to be able to use it as a library.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FirefoxProfiles = []string{os.Getenv("HOME") + "/.mozilla/firefox/*",
		os.Getenv("HOME") + "/.mozilla/firefox-trunk/*",
		os.Getenv("HOME") + "/snap/firefox/common/.mozilla/firefox/*"}
	NSSBrowsers = "Firefox and/or Chrome/Chromium"

	CertutilInstallHelp string
)

Functions

func Cert

func Cert(filename string) (tls.Certificate, error)

Types

type CA

type CA struct {
	Key crypto.PrivateKey
	// contains filtered or unexported fields
}

func NewCA

func NewCA(dir string) (*CA, error)

func (*CA) AsTLS

func (ca *CA) AsTLS() *tls.Certificate

func (*CA) CreateCA

func (ca *CA) CreateCA() error

func (*CA) CreateCert

func (ca *CA) CreateCert(hosts []string) (tls.Certificate, error)

func (*CA) HasCA

func (ca *CA) HasCA() bool

func (*CA) Install

func (ca *CA) Install(force bool) error

func (*CA) IsExpired

func (ca *CA) IsExpired() bool

func (*CA) IsTrusted

func (ca *CA) IsTrusted() bool

func (*CA) LoadCA

func (ca *CA) LoadCA() error

func (*CA) MakeCert

func (ca *CA) MakeCert(filename string, hosts []string) error

func (*CA) MustBeRegenerated

func (ca *CA) MustBeRegenerated() bool

func (*CA) Uninstall

func (ca *CA) Uninstall() error

Jump to

Keyboard shortcuts

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