libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [45/51] [abbrv] libcloud git commit: remove the default certs and set the cert path to None. we use the inbuilt certifi package with requests now
Date Mon, 09 Jan 2017 04:53:05 GMT
remove the default certs and set the cert path to None. we use the inbuilt certifi package
with requests now


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/a4ad8d4a
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/a4ad8d4a
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/a4ad8d4a

Branch: refs/heads/trunk
Commit: a4ad8d4a44dbf6069d924cdadabfff522ed703e6
Parents: c3ee0f0
Author: Anthony Shaw <anthonyshaw@apache.org>
Authored: Mon Jan 9 14:19:30 2017 +1100
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Mon Jan 9 14:19:30 2017 +1100

----------------------------------------------------------------------
 libcloud/httplib_ssl.py                 |  1 +
 libcloud/security.py                    | 26 +-------------------------
 libcloud/storage/drivers/azure_blobs.py |  1 -
 3 files changed, 2 insertions(+), 26 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/a4ad8d4a/libcloud/httplib_ssl.py
----------------------------------------------------------------------
diff --git a/libcloud/httplib_ssl.py b/libcloud/httplib_ssl.py
index f47e491..aa769f3 100644
--- a/libcloud/httplib_ssl.py
+++ b/libcloud/httplib_ssl.py
@@ -152,6 +152,7 @@ class LibcloudBaseConnection(object):
             if isinstance(libcloud.security.CA_CERTS_PATH, list):
                 if len(libcloud.security.CA_CERTS_PATH) > 1:
                     warnings.warn('Only 1 certificate path is supported')
+                    print(libcloud.security.CA_CERTS_PATH)
                 self.ca_cert = libcloud.security.CA_CERTS_PATH[0]
             else:
                 self.ca_cert = libcloud.security.CA_CERTS_PATH

http://git-wip-us.apache.org/repos/asf/libcloud/blob/a4ad8d4a/libcloud/security.py
----------------------------------------------------------------------
diff --git a/libcloud/security.py b/libcloud/security.py
index 436dbfc..bb8a303 100644
--- a/libcloud/security.py
+++ b/libcloud/security.py
@@ -42,31 +42,7 @@ USE_CERTIFI = str(USE_CERTIFI).lower() in ['true', '1']
 
 # File containing one or more PEM-encoded CA certificates
 # concatenated together.
-CA_CERTS_PATH = [
-    # centos/fedora: openssl
-    '/etc/pki/tls/certs/ca-bundle.crt',
-
-    # debian/ubuntu/arch/gentoo: ca-certificates
-    '/etc/ssl/certs/ca-certificates.crt',
-
-    # freebsd: ca_root_nss
-    '/usr/local/share/certs/ca-root-nss.crt',
-
-    # macports: curl-ca-bundle
-    '/opt/local/share/curl/curl-ca-bundle.crt',
-
-    # homebrew: openssl
-    '/usr/local/etc/openssl/cert.pem',
-
-    # homebrew: curl-ca-bundle (backward compatibility)
-    '/usr/local/opt/curl-ca-bundle/share/ca-bundle.crt',
-
-    # opensuse/sles: openssl
-    '/etc/ssl/ca-bundle.pem',
-
-    # SLES11 imported CA certificate
-    '/etc/ssl/certs/YaST-CA.pem',
-]
+CA_CERTS_PATH = None
 
 # Insert certifi CA bundle path to the front of Libcloud CA bundle search
 # path if certifi is available

http://git-wip-us.apache.org/repos/asf/libcloud/blob/a4ad8d4a/libcloud/storage/drivers/azure_blobs.py
----------------------------------------------------------------------
diff --git a/libcloud/storage/drivers/azure_blobs.py b/libcloud/storage/drivers/azure_blobs.py
index 497ec48..d4bf919 100644
--- a/libcloud/storage/drivers/azure_blobs.py
+++ b/libcloud/storage/drivers/azure_blobs.py
@@ -24,7 +24,6 @@ try:
 except ImportError:
     from xml.etree import ElementTree as ET
 
-from libcloud.utils.py3 import PY3
 from libcloud.utils.py3 import httplib
 from libcloud.utils.py3 import urlquote
 from libcloud.utils.py3 import tostring


Mime
View raw message