Versions in this module Expand all Collapse all v1 v1.5.1 Feb 8, 2017 v1.5.0 Oct 23, 2016 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 GenerateSelfSignedCert(host, certPath, keyPath string, alternateIPs []net.IP, alternateDNS []string) 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