Versions in this module Expand all Collapse all v0 v0.2.0 Oct 30, 2021 v0.1.0 Oct 24, 2021 Changes in this version + func GenCACert(option CertOption) (*x509.Certificate, *rsa.PrivateKey, error) + func GenClientCert(option CertOption) (*x509.Certificate, *rsa.PrivateKey, error) + func GenServerCert(option CertOption) (*x509.Certificate, *rsa.PrivateKey, error) + type CertOption struct + CommonName string + ExtraExtensions []pkix.Extension + ExtraSubject pkix.Name + Hosts []string + NotAfter time.Time + NotBefore time.Time + Organizations []string + ParentCert *x509.Certificate + ParentKey *rsa.PrivateKey + PrivateKey *rsa.PrivateKey + RSAKeySize int + func (o CertOption) KeySizeValue() int + func (o CertOption) NotAfterValue() time.Time + func (o CertOption) NotBeforeValue() time.Time