Skip to content

Conversation

@TheWitness
Copy link
Contributor

@TheWitness TheWitness commented Nov 21, 2022

This is due to the fact that verification of the key is disabled causing the following errors:

 File "./pacclient.py", line 1369, in <module> main(sys.argv[1:]) File "./pacclient.py", line 1288, in main main_logon(argv[1:]) File "./pacclient.py", line 81, in main_logon logon(url, user, password) File "/root/lsf-integrations/Spectrum LSF Application Center/pacclient/pac_api.py", line 642, in logon response, contentb = http.request(url_logon, 'GET', body=body, headers=headers) File "/usr/local/lib/python3.6/site-packages/httplib2/__init__.py", line 1588, in request tls_minimum_version=self.tls_minimum_version, File "/usr/local/lib/python3.6/site-packages/httplib2/__init__.py", line 1103, in __init__ key_password=key_password, File "/usr/local/lib/python3.6/site-packages/httplib2/__init__.py", line 155, in _build_ssl_context context.verify_mode = ssl.CERT_NONE if disable_ssl_certificate_validation else ssl.CERT_REQUIRED File "/usr/lib64/python3.6/ssl.py", line 443, in verify_mode super(SSLContext, SSLContext).verify_mode.__set__(self, value) ValueError: Cannot set verify_mode to CERT_NONE when check_hostname is enabled.
This is due to the fact that verification of the key is disabled causing the following errors: ```bash File "./pacclient.py", line 1369, in <module> main(sys.argv[1:]) File "./pacclient.py", line 1288, in main main_logon(argv[1:]) File "./pacclient.py", line 81, in main_logon logon(url, user, password) File "/root/lsf-integrations/Spectrum LSF Application Center/pacclient/pac_api.py", line 642, in logon response, contentb = http.request(url_logon, 'GET', body=body, headers=headers) File "/usr/local/lib/python3.6/site-packages/httplib2/__init__.py", line 1588, in request tls_minimum_version=self.tls_minimum_version, File "/usr/local/lib/python3.6/site-packages/httplib2/__init__.py", line 1103, in __init__ key_password=key_password, File "/usr/local/lib/python3.6/site-packages/httplib2/__init__.py", line 155, in _build_ssl_context context.verify_mode = ssl.CERT_NONE if disable_ssl_certificate_validation else ssl.CERT_REQUIRED File "/usr/lib64/python3.6/ssl.py", line 443, in verify_mode super(SSLContext, SSLContext).verify_mode.__set__(self, value) ValueError: Cannot set verify_mode to CERT_NONE when check_hostname is enabled. ```
@georgeg000 georgeg000 merged commit c776ed5 into IBMSpectrumComputing:master Nov 21, 2022
@georgeg000
Copy link
Collaborator

agree with the client side verification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants