package tlsutil
import "github.com/coreos/etcd/pkg/tlsutil"
Package tlsutil provides utility functions for handling TLS.
Index ¶
- func NewCert(certfile, keyfile string, parseFunc func([]byte, []byte) (tls.Certificate, error)) (*tls.Certificate, error)
- func NewCertPool(CAFiles []string) (*x509.CertPool, error)
Functions ¶
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 ¶
NewCertPool creates x509 certPool with provided CA files.
Source Files ¶
- Version
- v3.2.3+incompatible
- Published
- Jul 13, 2017
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 11 minutes ago –
Tools for package owners.