vault: github.com/hashicorp/vault/sdk/helper/tlsutil Index | Files

package tlsutil

import "github.com/hashicorp/vault/sdk/helper/tlsutil"

Index

Package Files

tlsutil.go

Variables

var ErrInvalidCertParams = errors.New("invalid certificate parameters")
var TLSLookup = map[string]uint16{
    "tls10": tls.VersionTLS10,
    "tls11": tls.VersionTLS11,
    "tls12": tls.VersionTLS12,
}

TLSLookup maps the tls_min_version configuration to the internal value

func ClientTLSConfig Uses

func ClientTLSConfig(caCert []byte, clientCert []byte, clientKey []byte) (*tls.Config, error)

func GetCipherName Uses

func GetCipherName(cipher uint16) (string, error)

GetCipherName returns the name of a given cipher suite code or an error if the given cipher is unsupported.

func ParseCiphers Uses

func ParseCiphers(cipherStr string) ([]uint16, error)

ParseCiphers parse ciphersuites from the comma-separated string into recognized slice

Package tlsutil imports 5 packages (graph) and is imported by 12 packages. Updated 2019-07-02. Refresh now. Tools for package owners.