Versions in this module Expand all Collapse all v0 v0.1.0 Oct 2, 2015 Changes in this version + const RSAKeySize + var Duration365d = time.Hour * 24 * 365 + var Duration90d = time.Hour * 24 * 90 + func NewPrivateKey() (*rsa.PrivateKey, error) + func NewSelfSignedCACertificate(cfg CACertConfig, key *rsa.PrivateKey) (*x509.Certificate, error) + func NewSignedClientCertificate(cfg ClientCertConfig, key *rsa.PrivateKey, caCert *x509.Certificate, ...) (*x509.Certificate, error) + func NewSignedServerCertificate(cfg ServerCertConfig, key *rsa.PrivateKey, caCert *x509.Certificate, ...) (*x509.Certificate, error) + func WriteCertificatePEMBlock(out io.Writer, cert *x509.Certificate) error + func WritePrivateKeyPEMBlock(out io.Writer, key *rsa.PrivateKey) error + type CACertConfig struct + CommonName string + Organization string + type ClientCertConfig struct + CommonName string + DNSNames []string + IPAddresses []string + type ServerCertConfig struct + CommonName string + DNSNames []string + IPAddresses []string