python - How to use latest openssl library with pyOpenSSL? -
i using pyopenssl, , uses openssl 1.0.1f
installed system. install openssl 1.0.1j
source, , set new version library path ld_library_path
, @ time, when running py file, produce error:
file "sslcert.py", line 5, in <module> openssl import ssl, _util, crypto ... file "/usr/local/lib/python2.7/dist-packages/cffi-0.8.6-py2.7-linux-x86_64.egg/cffi/vengine_cpy.py", line 149, in load_library raise ffiplatform.verificationerror(error) cffi.ffiplatform.verificationerror: importing '/usr/local/lib/python2.7/dist-packages/cryptography-0.6.1-py2.7-linux-x86_64.egg/cryptography/_cryptography_cffi_36a40ff0x2bad1bae.so': /usr/local/lib/python2.7/dist-packages/cryptography-0.6.1-py2.7-linux-x86_64.egg/cryptography/_cryptography_cffi_36a40ff0x2bad1bae.so: symbol ec_gfp_nistp521_method, version openssl_1.0.1 not defined in file libcrypto.so.1.0.0 link time reference
i wonder using latest openssl library pyopenssl, how can fix issue?
you need recompile cryptography against newer version of openssl.
make sure install development headers openssl , rebuild (perhaps re-installing) cryptography.
you may want investigate use of virtualenv keep newly built versions separate installed versions.
Comments
Post a Comment