[issue41239] SSL Certificate verify failed in Python3.6/3.7

2020-07-08 Thread Wu Wenyan
Wu Wenyan added the comment: OK. Thanks for your suggestion. -- ___ Python tracker <https://bugs.python.org/issue41239> ___ ___ Python-bugs-list mailin

[issue41239] SSL Certificate verify failed in Python3.6/3.7

2020-07-08 Thread Wu Wenyan
Wu Wenyan added the comment: I tried to print "self.host" which would be passed to wrap_socket(). It seems no problem. > /usr/local/lib/python3.6/site-packages/pywbem/cim_http.py(616)connect() -> try: (Pdb) p self.host '193.168.11.113' (Pdb) n > /usr/local/lib/p

[issue41239] SSL Certificate verify failed in Python3.6/3.7

2020-07-08 Thread Wu Wenyan
Wu Wenyan 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 "", line 1, in File "/usr/local/lib

[issue41239] SSL Certificate verify failed in Python3.6/3.7

2020-07-08 Thread Wu Wenyan
Wu Wenyan added the comment: I am running Python on Centos7. See result in attached file. -- Added file: https://bugs.python.org/file49306/server_cer.txt ___ Python tracker <https://bugs.python.org/issue41

[issue41239] SSL Certificate verify failed in Python3.6/3.7

2020-07-08 Thread Wu Wenyan
New submission from Wu Wenyan : I am running the following code in python3.6 to connect to a storage. [root@controller wuwy]# python3 Python 3.6.8 (default, Jan 11 2019, 02:17:16) [GCC 8.2.1 20180905 (Red Hat 8.2.1-3)] on linux Type "help", "copyright", "credi