Versions in this module Expand all Collapse all v2 v2.0.0 Feb 13, 2017 Changes in this version + func CanReadCertOrKey(certPath, keyPath string) bool + func EncodeCertPEM(cert *x509.Certificate) []byte + func EncodePrivateKeyPEM(key *rsa.PrivateKey) []byte + func EncodePublicKeyPEM(key *rsa.PublicKey) ([]byte, error) + func FormatBytesCert(cert []byte) (string, error) + func FormatCert(c *x509.Certificate) string + func GenerateSelfSignedCertKey(host string, alternateIPs []net.IP, alternateDNS []string) ([]byte, []byte, error) + func MakeCSR(privateKey interface{}, subject *pkix.Name, dnsSANs []string, ipSANs []net.IP) (csr []byte, err error) + func MakeEllipticPrivateKeyPEM() ([]byte, error) + func NewPool(filename string) (*x509.CertPool, error) + func NewPrivateKey() (*rsa.PrivateKey, error) + func NewSelfSignedCACert(cfg Config, key *rsa.PrivateKey) (*x509.Certificate, error) + func NewSignedCert(cfg Config, key *rsa.PrivateKey, caCert *x509.Certificate, ...) (*x509.Certificate, error) + func ParseCSR(obj *certificates.CertificateSigningRequest) (*x509.CertificateRequest, error) + func ParseCertsPEM(pemCerts []byte) ([]*x509.Certificate, error) + func ParsePrivateKeyPEM(keyData []byte) (interface{}, error) + func WriteCert(certPath string, data []byte) error + func WriteKey(keyPath string, data []byte) error + type AltNames struct + DNSNames []string + IPs []net.IP + type Config struct + AltNames AltNames + CommonName string + Organization []string v2.0.0-alpha.1 Dec 20, 2016