mirror of https://github.com/docker/docs.git
Fix --tlsverify between the CLI and Swarm.
--tlsverify used to be effective only between Swarm and the engines, but the authentication was not properly functioning with the CLI. Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
a0bfcf6733
commit
c2d7acf42a
|
@ -52,6 +52,8 @@ func loadTlsConfig(ca, cert, key string, verify bool) (*tls.Config, error) {
|
|||
}
|
||||
certPool.AppendCertsFromPEM(file)
|
||||
config.RootCAs = certPool
|
||||
config.ClientAuth = tls.RequireAndVerifyClientCert
|
||||
config.ClientCAs = certPool
|
||||
} else {
|
||||
// If --tlsverify is not supplied, disable CA validation.
|
||||
config.InsecureSkipVerify = true
|
||||
|
|
Loading…
Reference in New Issue