autoca

package
v0.0.0-...-7ecefd1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOGGER = log.New(os.Stdout, "AutoCA ", log.Ldate|log.Ltime|log.Lshortfile)

Functions

This section is empty.

Types

type AutoCA

type AutoCA struct {
	// contains filtered or unexported fields
}

func (*AutoCA) CreateCertificate

func (ca *AutoCA) CreateCertificate(template *x509.Certificate, publicKey *rsa.PublicKey) ([]byte, error)

func (*AutoCA) GetCaCertificate

func (ca *AutoCA) GetCaCertificate() []byte

func (*AutoCA) GetHostCertificateTemplate

func (ca *AutoCA) GetHostCertificateTemplate(hosts []string, addrs []net.IP, notBefore time.Time, notAfter time.Time) *x509.Certificate

func (*AutoCA) GetUserCertificateTemplate

func (ca *AutoCA) GetUserCertificateTemplate(cn string, notBefore time.Time, notAfter time.Time) *x509.Certificate

func (*AutoCA) Init

func (ca *AutoCA) Init(certFile string, keyFile string, pass string, db string) error

Jump to

Keyboard shortcuts

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