Versions in this module Expand all Collapse all v1 v1.5.6 Mar 27, 2022 Changes in this version + type Certificate struct + Certificate []byte + PrivateKey []byte + func Generate(parent *Certificate, opts ...Option) (*Certificate, error) + func MustGenerate(parent *Certificate, opts ...Option) *Certificate + func ParseCertificate(certPEM []byte, keyPEM []byte) (*Certificate, error) + func (c *Certificate) ToPEM() ([]byte, []byte) + type Option func(*x509.Certificate) + func Authority(isCA bool) Option + func CommonName(name string) Option + func DNSNames(names ...string) Option + func KeyUsage(usage x509.KeyUsage) Option + func NotAfter(t time.Time) Option + func NotBefore(t time.Time) Option + func Organization(org string) Option