Code: Select all
Python 2.7.15 (default, Sep 18 2018, 20:26:51)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type 'help', 'copyright', 'credits' or 'license' for more information.
>>> import ssl
>>> ssl.get_default_verify_paths()
DefaultVerifyPaths(cafile='/usr/local/etc/openssl/cert.pem', capath='/usr/local/etc/openssl/certs', openssl_cafile_env='SSL_CERT_FILE', openssl_cafile='/usr/local/etc/openssl/cert.pem', openssl_capath_env='SSL_CERT_DIR', openssl_capath='/usr/local/etc/openssl/certs')
>>>
both /usr/local/etc/openssl/cert.pem and /usr/local/etc/openssl/certs if the user has installed homebrew and using brew install openssl.
the only way i can think to "fix" this is to include a custom openssl.cnf in the bundle and point at it using an environment variable set by freecad (OPENSSL_CONF) and then use an environment variable in/for openssl.cnf to be able to find the correct path to the certificates.