I'm working with linux(RHEL 7.4), python 3.6.10, pyinstaller 3.6/4.1.dev0
As following simple test code: test.py: import ssl,socket context = ssl.create_default_context() print(context.get_ca_certs())
I use pyinstaller to make a package on workstation A, and run it on workstation B(the two workstations' OS has some unknown differences), and in B it would print nothing.
However, following cases all work:
- run python script directly on both A & B, like
python test.py
- run generated file on A
- run generated file on workstation C, which has the same OS as A
So I'm just wondering if the cacert.pem reference(or location) changes between A & B? How should I debug/fix this issue? Btw, I'm using miniconda on A, and for example if I remove envs/ENV/ssl/cacert.pem, directly run 'python test.py' print nothing, however, using pyinstaller generate a package and run, it shows the default ca certs... So I suppose there should be something wrong with the package process.
Thanks in advance.