check if cert path is a list and only of 1
@@ -148,6 +148,11 @@ class LibcloudBaseConnection(object):
def _setup_ca_cert(self):
if self.verify is False:
pass
+ else:
+ if isinstance(libcloud.security.CA_CERTS_PATH, list):
+ if len(libcloud.security.CA_CERTS_PATH) > 1:
+ raise ValueError('Only 1 certificate path is supported')
+ self.ca_cert = libcloud.security.CA_CERTS_PATH[0]
else:
self.ca_cert = libcloud.security.CA_CERTS_PATH
