Commit 1d3d73a0 by Matt Martz

Only write the DUMMY_CA_CERT on OS X

parent 3b5aa8bd
...@@ -137,7 +137,8 @@ class SSLValidationHandler(urllib2.BaseHandler): ...@@ -137,7 +137,8 @@ class SSLValidationHandler(urllib2.BaseHandler):
tmp_fd, tmp_path = tempfile.mkstemp() 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) os.write(tmp_fd, DUMMY_CA_CERT)
# for all of the paths, find any .crt or .pem files # for all of the paths, find any .crt or .pem files
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment