From 378f59405955e3e0462d88cab3d67ba293bbc94f Mon Sep 17 00:00:00 2001
From: Erinn Looney-Triggs <erinn.looneytriggs@gmail.com>
Date: Wed, 23 Jan 2013 16:48:01 -0700
Subject: [PATCH] Allow CA location to be overriden with SSL_CERT_FILE env
 variable.

---
 libcloud/security.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libcloud/security.py b/libcloud/security.py
index 8436248..d397c73 100644
--- a/libcloud/security.py
+++ b/libcloud/security.py
@@ -22,13 +22,17 @@ Usage:
     # Optional.
     libcloud.security.CA_CERTS_PATH.append("/path/to/cacert.txt")
 """
-
+ import os
+ 
 VERIFY_SSL_CERT = True
 VERIFY_SSL_CERT_STRICT = True
 
 # File containing one or more PEM-encoded CA certificates
 # concatenated together.
 CA_CERTS_PATH = [
+    #Allow for the CA location to be overridden with an environment variable
+    os.getenv('SSL_CERT_FILE', ''),
+
     # centos/fedora: openssl
     '/etc/pki/tls/certs/ca-bundle.crt',
 
-- 
1.8.1

