I've run searches all day without any luck or results. I have built a Centos 7 server and installed Python 3.7 along with OpenSSL 1.1.1.
However, when I run Python and perform the following:
import ssl
ssl.OPENSSL_VERSION
The output I get is OpenSSL 1.0.2k. When running openssl version at the prompt, I get OpenSSL 1.1.1.
Both OpenSSL and Python were compiled on the machine.
The correct OpenSSL is in the path. Also tried to compile Python with the configure --with-openssl=/usr/local (location of the correct openssl).
Thanks.
[Edit]
When I type
openssl version
sudo openssl version
I get different versions coming up. The sudo openssl version is the same that I get through Python. $PATH with and without sudo is the same