Back to godoc.org
github.com/hashicorp/vault/sdk / helper / tlsutil

package tlsutil

v0.1.13
Latest Go to latest
Published: Jul 25, 2019 | License: MPL-2.0 | Module: github.com/hashicorp/vault/sdk

Index

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

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

func GetCipherName

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

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

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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier