diff options
author | Kali Kaneko <kali@leap.se> | 2014-11-07 20:19:01 +0100 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-11-10 16:01:49 +0100 |
commit | bb17bf8295d04d4834246b0f30244933429dc247 (patch) | |
tree | 23ac69257c19bb757bda2f8d9e244b9444e42b64 /src/leap/bitmask/config/providerconfig.py | |
parent | 571fd912925a76ab35c55b7906d774363b51ce37 (diff) |
Fix compatibilty with newest openssl. Closes: #6133
Newest OpenSSL expect cafile to be None or byte stream (was retunrning
unicode)
Diffstat (limited to 'src/leap/bitmask/config/providerconfig.py')
-rw-r--r-- | src/leap/bitmask/config/providerconfig.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/bitmask/config/providerconfig.py b/src/leap/bitmask/config/providerconfig.py index 57bc3a98..386c697d 100644 --- a/src/leap/bitmask/config/providerconfig.py +++ b/src/leap/bitmask/config/providerconfig.py @@ -201,7 +201,8 @@ class ProviderConfig(BaseConfig): leap_check(cert_exists, error_msg, MissingCACert) logger.debug("Going to verify SSL against %s" % (cert_path,)) - return cert_path + # OpenSSL does not handle unicode. + return cert_path.encode('utf-8') def provides_eip(self): """ |