Versions in this module Expand all Collapse all v2 v2.0.0 Oct 7, 2019 Changes in this version + const DefaultCertDuration + const DefaultRSAKeySize + func DecodeCertPEM(encoded []byte) (*x509.Certificate, error) + func DecodePrivateKeyPEM(encoded []byte) (*rsa.PrivateKey, error) + func EncodeCertPEM(cert *x509.Certificate) []byte + func EncodePrivateKeyPEM(key *rsa.PrivateKey) []byte + func EncodePublicKeyPEM(key *rsa.PublicKey) ([]byte, error) + func NewPrivateKey() (*rsa.PrivateKey, error) + type AltNames struct + DNSNames []string + IPs []net.IP + type Config struct + AltNames AltNames + CommonName string + Organization []string + Usages []x509.ExtKeyUsage + func (cfg *Config) NewSignedCert(key *rsa.PrivateKey, caCert *x509.Certificate, caKey *rsa.PrivateKey) (*x509.Certificate, error) + type KeyPair struct + Cert []byte + Key []byte + func (k *KeyPair) IsValid() bool