pki

package
v0.0.0-...-31fc70c Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCertificateValidity = 397
	//DefaultRenewCertificate    = -time.Hour * 24 * 7 // 7 days before expired
	KeyBitSize = 2048
)

Variables

This section is empty.

Functions

func LoadRootCA

func LoadRootCA(privateKeyPem []byte, publicKeyPem []byte, certPem []byte, crlPem []byte, log *logrus.Entry) (ca *goca.CA, err error)

LoadRootCA load existing CA and retun it

func NeedRenewCertificate

func NeedRenewCertificate(crt *x509.Certificate, durationBeforeExpire time.Duration, log *logrus.Entry) (status bool, err error)

NeedRenewCertificate permit to check if certificate must be renewed before it expire

Types

This section is empty.

Jump to

Keyboard shortcuts

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