package tlsutil

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

Package tlsutil provides utility functions for handling TLS.

Index

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

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

NewCertPool creates x509 certPool with provided CA files.

Source Files

doc.go tlsutil.go

Version
v3.0.9+incompatible
Published
Sep 15, 2016
Platform
linux/amd64
Imports
4 packages
Last checked
22 minutes ago

Tools for package owners.