@@ -32,7 +32,7 @@ def __init__(self, client_cert=None, ca_cert=None, verify=None,
32
32
# https://docs.docker.com/engine/articles/https/
33
33
# This diverges from the Docker CLI in that users can specify 'tls'
34
34
# here, but also disable any public/default CA pool verification by
35
- # leaving tls_verify =False
35
+ # leaving verify =False
36
36
37
37
self .assert_hostname = assert_hostname
38
38
self .assert_fingerprint = assert_fingerprint
@@ -62,7 +62,7 @@ def __init__(self, client_cert=None, ca_cert=None, verify=None,
62
62
# https://github.com/docker/docker-py/issues/963
63
63
self .ssl_version = ssl .PROTOCOL_TLSv1
64
64
65
- # "tls" and "tls_verify" must have both or neither cert/key files In
65
+ # "client_cert" must have both or neither cert/key files. In
66
66
# either case, Alert the user when both are expected, but any are
67
67
# missing.
68
68
@@ -71,15 +71,15 @@ def __init__(self, client_cert=None, ca_cert=None, verify=None,
71
71
tls_cert , tls_key = client_cert
72
72
except ValueError :
73
73
raise errors .TLSParameterError (
74
- 'client_config must be a tuple of'
74
+ 'client_cert must be a tuple of'
75
75
' (client certificate, key file)'
76
76
)
77
77
78
78
if not (tls_cert and tls_key ) or (not os .path .isfile (tls_cert ) or
79
79
not os .path .isfile (tls_key )):
80
80
raise errors .TLSParameterError (
81
81
'Path to a certificate and key files must be provided'
82
- ' through the client_config param'
82
+ ' through the client_cert param'
83
83
)
84
84
self .cert = (tls_cert , tls_key )
85
85
@@ -88,7 +88,7 @@ def __init__(self, client_cert=None, ca_cert=None, verify=None,
88
88
self .ca_cert = ca_cert
89
89
if self .verify and self .ca_cert and not os .path .isfile (self .ca_cert ):
90
90
raise errors .TLSParameterError (
91
- 'Invalid CA certificate provided for `tls_ca_cert `.'
91
+ 'Invalid CA certificate provided for `ca_cert `.'
92
92
)
93
93
94
94
def configure_client (self , client ):
0 commit comments