I have a Dropbox upload script on an old nas box I have, recently I've been getting the following error
SSL certificate error: [Errno 1] _ssl.c:504: error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm
I think this is due to openssl being out of date on the box
So I download openssl, built it from source and installed it, now when I run the following it appears to be updated correctly.
openssl version
OpenSSL 1.0.1h 5 Jun 2014
But it would appear Python is still referencing an old version, how would I update this?
python -c "import ssl; print ssl.OPENSSL_VERSION"
OpenSSL 0.9.7m 23 Feb 2007
Modules/Setup.dist
:-L$(SSL)/lib -lssl -lcrypto
. If its dynamic, he only needs to setLD_PRELOAD
, point to the 0.9.8 shared object and then launch Python. – Interpellatessl.OPENSSL_VERSION
it will display the library it loaded if dynamic (not just what it originally linked against), so it's probably worth tryingLD_PRELOAD
. – Flytrap