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.
Click to show internal directories.
Click to hide internal directories.