Versions in this module Expand all Collapse all v0 v0.0.2 Aug 3, 2022 v0.0.1 Aug 2, 2022 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