etcd: Index | Files

package tlsutil

import ""

Package tlsutil provides utility functions for handling TLS.


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 245 packages. Updated 2020-06-16. Refresh now. Tools for package owners.