Versions in this module Expand all Collapse all v2 v2.2.2 Jun 20, 2024 Changes in this version + type CACert struct + func NewCACert(opts ...CACertOption) *CACert + func (c *CACert) SelfSign(rand io.Reader, pub crypto.PublicKey, priv interface{}) ([]byte, error) + type CACertOption func(*CACert) + func WithCommonName(name string) CACertOption + func WithCountry(country string) CACertOption + func WithKeyUsage(usage x509.KeyUsage) CACertOption + func WithOrganization(o string) CACertOption + func WithOrganizationalUnit(ou string) CACertOption + func WithYears(y int) CACertOption + type Depot interface + CA func(pass []byte) ([]*x509.Certificate, *rsa.PrivateKey, error) + HasCN func(cn string, allowTime int, cert *x509.Certificate, revokeOldCertificate bool) (bool, error) + Put func(name string, crt *x509.Certificate) error + Serial func() (*big.Int, error) + type Option func(*Signer) + func WithAllowRenewalDays(r int) Option + func WithCAPass(pass string) Option + func WithSeverAttrs() Option + func WithSignatureAlgorithm(a x509.SignatureAlgorithm) Option + func WithValidityDays(v int) Option + type Signer struct + func NewSigner(depot Depot, opts ...Option) *Signer + func (s *Signer) SignCSR(m *scep.CSRReqMessage) (*x509.Certificate, error)