Skip to content

Instantly share code, notes, and snippets.

@georgeoftown
Created September 29, 2021 12:52
Show Gist options
  • Save georgeoftown/4398066e5f7eaaa6e649a3dae58e3cb8 to your computer and use it in GitHub Desktop.
Save georgeoftown/4398066e5f7eaaa6e649a3dae58e3cb8 to your computer and use it in GitHub Desktop.
ERROR 2021-09-29 14:45:42,410 got error: Cannot set verify_mode to CERT_NONE when check_hostname is enabled.
INFO 2021-09-29 14:45:52,405 Hostname: jguerra-VirtualBox
ERROR 2021-09-29 14:45:52,406 Got exception on getTransportData
Traceback (most recent call last):
File "/usr/lib/UDSClient/uds/rest.py", line 142, in getScriptAndParams
params={'hostname': tools.getHostName(), 'version': VERSION},
File "/usr/lib/UDSClient/uds/rest.py", line 104, in get
RestApi.getUrl(self._restApiUrl + url, self._callbackInvalidCert)
File "/usr/lib/UDSClient/uds/rest.py", line 250, in getUrl
with RestApi._open(url, certErrorCallback) as response:
File "/usr/lib/UDSClient/uds/rest.py", line 188, in _open
ctx.verify_mode = ssl.CERT_NONE
File "/usr/lib/python3.6/ssl.py", line 485, in verify_mode
super(SSLContext, SSLContext).verify_mode.__set__(self, value)
ValueError: Cannot set verify_mode to CERT_NONE when check_hostname is enabled.
ERROR 2021-09-29 14:45:52,413 got error: Cannot set verify_mode to CERT_NONE when check_hostname is enabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment