cert

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValid

func IsValid(info CertificateInfo, dnsname string, duration time.Duration) bool

func Valid

func Valid(key []byte, cert []byte, cacert []byte, dnsname string, duration time.Duration) bool

Types

type CertificateInfo

type CertificateInfo interface {
	Cert() []byte
	Key() []byte
	CACert() []byte
	CAKey() []byte
}

func NewCertInfo

func NewCertInfo(cert []byte, key []byte, cacert []byte, cakey []byte) CertificateInfo

func UpdateCertificate

func UpdateCertificate(old CertificateInfo, commonname, dnsname string, duration time.Duration) (CertificateInfo, error)

Jump to

Keyboard shortcuts

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