Versions in this module Expand all Collapse all v2 v2.9.3 Mar 12, 2021 v2.9.2 Mar 12, 2021 Changes in this version + func CA(opts ...CertOption) ([]byte, []byte, error) + func CSR(opts ...CertOption) ([]byte, error) + func GenerateKey() (ed25519.PublicKey, ed25519.PrivateKey, error) + func Sign(CACrt, CAKey, CSR []byte, opts ...CertOption) ([]byte, error) + type CertOption func(c *CertOptions) + func DNSNames(names ...string) CertOption + func IPAddresses(ips ...net.IP) CertOption + func IsCA() CertOption + func KeyPair(pub ed25519.PublicKey, priv ed25519.PrivateKey) CertOption + func NotAfter(time time.Time) CertOption + func NotBefore(time time.Time) CertOption + func SerialNumber(serial *big.Int) CertOption + func Subject(subject pkix.Name) CertOption + type CertOptions struct + DNSNames []string + IPAddresses []net.IP + IsCA bool + NotAfter time.Time + NotBefore time.Time + Parent *x509.Certificate + Priv ed25519.PrivateKey + Pub ed25519.PublicKey + SerialNumber *big.Int + Subject pkix.Name