Versions in this module Expand all Collapse all v0 v0.2.0 Aug 22, 2022 v0.1.0 Apr 6, 2022 Changes in this version + var CertificateExpiredError = errors.New("expired") + var CertificateInvalidDateError = errors.New("invalid date") + var CertificateInvalidError = errors.New("invalid") + var CertificateIsNotCAError = errors.New("certificate is not for CA") + func ValidateCACertificate(cert *x509.Certificate, key crypto.PublicKey) error + type CA struct + func NewCA(key crypto.Signer, cert *x509.Certificate) (*CA, error) + func (ca *CA) Certificate() *x509.Certificate + func (ca *CA) EncodedCertificate() []byte + func (ca *CA) EncodedKey() []byte + func (ca *CA) PrivateKey() crypto.Signer + func (ca *CA) Sign(csrPEM []byte, keyUsage x509.KeyUsage, extKeyUsage []x509.ExtKeyUsage) (*x509.Certificate, error)