Versions in this module Expand all Collapse all v1 v1.0.1 Sep 11, 2019 v1.0.0 Sep 11, 2019 Changes in this version + const Duration365d + const RSAKeySize + func EncodeCertificatePEM(cert *x509.Certificate) []byte + func EncodePrivateKeyPEM(key *rsa.PrivateKey) []byte + func EncodePublicKeyPEM(key *rsa.PublicKey) ([]byte, error) + func NewPrivateKey() (*rsa.PrivateKey, error) + func NewSelfSignedCACertificate(cfg CertConfig, key *rsa.PrivateKey, validDuration time.Duration) (*x509.Certificate, error) + func NewSignedCertificate(cfg CertConfig, key *rsa.PrivateKey, caCert *x509.Certificate, ...) (*x509.Certificate, error) + func ParsePEMEncodedCACert(pemdata []byte) (*x509.Certificate, error) + func ParsePEMEncodedPrivateKey(pemdata []byte) (*rsa.PrivateKey, error) + type AltNames struct + DNSNames []string + IPs []net.IP + type CertConfig struct + AltNames AltNames + CommonName string + Organization []string