api: Warn when SSL/TLS validation is disabled.
This commit is contained in:
parent
d85792524e
commit
e9a518e93e
|
@ -392,6 +392,9 @@ class Client(object):
|
|||
self.client_name = client
|
||||
|
||||
if insecure:
|
||||
logger.warning('Insecure mode enabled. The server\'s SSL/TLS '
|
||||
'certificate will not be validated, making the '
|
||||
'HTTPS connection potentially insecure')
|
||||
self.tls_verification = False # type: Union[bool, str]
|
||||
elif cert_bundle is not None:
|
||||
if not os.path.isfile(cert_bundle):
|
||||
|
|
Loading…
Reference in a new issue