Documentation ¶
Overview ¶
Vendored from docker/docker/pkg/tlsconfig as it was deprecated and removed in https://github.com/docker/docker/commit/66a5e34cc4a0bdf654010211baa2070bbe38ba3c
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultServerAcceptedCiphers = append(clientCipherSuites, acceptedCBCCiphers...)
DefaultServerAcceptedCiphers should be uses by code which already has a crypto/tls options struct but wants to use a commonly accepted set of TLS cipher suites, with known weak algorithms removed.
Functions ¶
func ClientDefault ¶
ClientDefault returns a secure-enough TLS configuration for the client TLS configuration.
func ServerDefault ¶
ServerDefault returns a secure-enough TLS configuration for the server TLS configuration.
Types ¶
type Options ¶
type Options struct { CAFile string // If either CertFile or KeyFile is empty, Client() will not load them // preventing the client from authenticating to the server. // However, Server() requires them and will error out if they are empty. CertFile string KeyFile string // client-only option InsecureSkipVerify bool // server-only option ClientAuth tls.ClientAuthType }
Options represents the information needed to create client and server TLS configurations.
Click to show internal directories.
Click to hide internal directories.