You can use ssl.OPENSSL_VERSION in python2.7, but not in 2.6. I tried the following command to see if it could be confirmed in 2.6.
python -c 'import ssl,commands; print commands.getoutput("strings {0} | grep \"^OpenSSL \"".format(commands.getoutput("ldd {0} | grep ssl ".format(ssl._ssl.__file__)).split(" ")[2])) '
OpenSSL 1.0.1e-fips 11 Feb 2013
Recommended Posts