Friday, 21 June 2019

How to link python 2.7 with latest openssl version in MAC OS?

When I run , I get 1.0.2k as version.

openssl version -a

OpenSSL 1.0.2k  26 Jan 2017
built on: reproducible build, date unspecified
platform: darwin64-x86_64-cc
options:  bn(64,64) rc4(ptr,int) des(idx,cisc,16,int) idea(int) blowfish(idx) 
compiler: cc -I. -I.. -I../include  -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch x86_64 -O3 -DL_ENDIAN -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM
OPENSSLDIR: "/usr/local/php5/ssl"

But when i check the version with python;

python -c 'import ssl; print(ssl.OPENSSL_VERSION)'

I get OpenSSL 0.9.8zg 14 July 2015

How can I link the latest openssl version? My pip version is ;

pip 10.0.1 from /Library/Python/2.7/site-packages/pip (python 2.7)

When I try to install some modules using PIP I get [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) error. So trying to upgrade my ssl version in python

And How to make my system Openssl version is same as virtualenv version?



from How to link python 2.7 with latest openssl version in MAC OS?

No comments:

Post a Comment