etcd: go.etcd.io/etcd/pkg/tlsutil Index | Files

package tlsutil

import "go.etcd.io/etcd/pkg/tlsutil"

Package tlsutil provides utility functions for handling TLS.

Index

Package Files

cipher_suites.go doc.go tlsutil.go

func GetCipherSuite Uses

func GetCipherSuite(s string) (uint16, bool)

GetCipherSuite returns the corresponding cipher suite, and boolean value if it is supported.

func NewCert Uses

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 Uses

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

NewCertPool creates x509 certPool with provided CA files.

Package tlsutil imports 4 packages (graph) and is imported by 39 packages. Updated 2019-01-30. Refresh now. Tools for package owners.