Only write the DUMMY_CA_CERT on OS X

This commit is contained in:
Matt Martz 2014-03-19 09:01:13 -05:00
parent 3b5aa8bd30
commit 1d3d73a0b6

View file

@ -137,7 +137,8 @@ class SSLValidationHandler(urllib2.BaseHandler):
tmp_fd, tmp_path = tempfile.mkstemp()
# Write the dummy ca cert
# Write the dummy ca cert if we are running on Mac OS X
if platform == 'Darwin':
os.write(tmp_fd, DUMMY_CA_CERT)
# for all of the paths, find any .crt or .pem files