fix zipimporter issue with some versions of openssl

This commit is contained in:
TrustedSec 2016-09-14 16:32:16 -04:00
parent 35f37ff27f
commit 9e8ef06105
3 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,9 @@
~~~~~~~~~~~~~~~~
version 7.3.13
~~~~~~~~~~~~~~~~
* some versions of OpenSSL would throw a zipimporter error. 7.3.13 resolves this issue
~~~~~~~~~~~~~~~~
version 7.3.12
~~~~~~~~~~~~~~~~

View file

@ -1 +1 @@
7.3.12
7.3.13

View file

@ -42,12 +42,13 @@ if track_email == True:
print_status(
"You have selected to track user accounts, Apache will automatically be turned on to handle tracking of users.")
apache_check = True
# detect openssl module
try:
from OpenSSL import SSL
# handle import error that openssl is not there
except ImportError:
print("Python OpenSSL wasn't detected, note that SSL compatibility is now turned off")
except Exception:
print("Python OpenSSL wasn't detected or has an installation issue, note that SSL compatibility is now turned off")
############################################
# Credential harvester #