Permalink
Browse files

Warn about bundled certs on creation not import.

  • Loading branch information...
1 parent a7e495f commit 3bd621cddefc55acb34cf8d55ba58d5061b332ed @JNRowe JNRowe committed Jan 18, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 github2/request.py
View
@@ -52,10 +52,7 @@
if path.exists('/usr/local/share/certs/ca-root-nss.crt'):
CA_CERTS = '/usr/local/share/certs/ca-root-nss.crt'
SYSTEM_CERTS = True
-if SYSTEM_CERTS:
- LOGGER.info('Using system certificates in %r', httplib2.CA_CERTS)
else:
- LOGGER.warning('Using bundled certificates for HTTPS connections')
CA_CERTS = path.join(path.dirname(path.abspath(__file__)),
"DigiCert_High_Assurance_EV_Root_CA.crt")
@@ -142,7 +139,10 @@ def __init__(self, username=None, api_token=None, url_prefix=None,
proxy_host, proxy_port)
self._http = httplib2.Http(proxy_info=proxy_info, cache=cache)
self._http.ca_certs = CA_CERTS
-
+ if SYSTEM_CERTS:
+ LOGGER.info('Using system certificates in %r', CA_CERTS)
+ else:
+ LOGGER.warning('Using bundled certificate for HTTPS connections')
def encode_authentication_data(self, extra_post_data):
post_data = []

0 comments on commit 3bd621c

Please sign in to comment.