tlsutil - ActiveState ActiveGo 1.8
...

Package tlsutil

import "github.com/coreos/etcd/pkg/tlsutil"
Overview
Index

Overview ▾

Package tlsutil provides utility functions for handling TLS.

func NewCert

func NewCert(certfile, keyfile string, parseFunc func([]byte, []byte) (tls.Certificate, error)) (*tls.Certificate, error)

NewCert generates TLS cert by using the given cert,key and parse function.

func NewCertPool

func NewCertPool(CAFiles []string) (*x509.CertPool, error)

NewCertPool creates x509 certPool with provided CA files.