LoginSignup
1
1

More than 5 years have passed since last update.

python 2.6 のOpenSSL version確認

Posted at

python2.7ではssl.OPENSSL_VERSIONが使えるが、2.6では使えない。
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
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1