Wu Wenyan <wuwy.f...@cn.fujitsu.com> added the comment:
You are right. I used openssl.cnf when created a csr, and ignore it when created cer. Now the code works fine with python3.7, but still cannot work in python3.6. Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.6/site-packages/pywbem/cim_operations.py", line 1919, in EnumerateInstances **extra) File "/usr/local/lib/python3.6/site-packages/pywbem/cim_operations.py", line 1232, in _imethodcall conn_id=self.conn_id) File "/usr/local/lib/python3.6/site-packages/pywbem/cim_http.py", line 776, in wbem_request client.endheaders() File "/usr/lib64/python3.6/http/client.py", line 1234, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib64/python3.6/http/client.py", line 1026, in _send_output self.send(msg) File "/usr/local/lib/python3.6/site-packages/pywbem/cim_http.py", line 461, in send self.connect() # pylint: disable=no-member File "/usr/local/lib/python3.6/site-packages/pywbem/cim_http.py", line 619, in connect return self.sock.connect((self.host, self.port)) File "/usr/lib64/python3.6/ssl.py", line 1064, in connect self._real_connect(addr, False) File "/usr/lib64/python3.6/ssl.py", line 1055, in _real_connect self.do_handshake() File "/usr/lib64/python3.6/ssl.py", line 1032, in do_handshake self._sslobj.do_handshake() File "/usr/lib64/python3.6/ssl.py", line 648, in do_handshake raise ValueError("check_hostname needs server_hostname " ValueError: check_hostname needs server_hostname argument Could you please check the attached file for me again? ---------- Added file: https://bugs.python.org/file49307/server_cer_1.txt _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41239> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com