kennethreitz/requests — pull request #315 by sciyoshi (2011-12-21 05:16:06+00:00)
Title: Fix for #30: options for certificate validation and client certs.

Quick fix for issue #30. Note that this doesn't do hostname matching when verifying, although this is an issue in urllib3 - maybe it should use [`backports.ssl_match_hostname`][1] if available.

For example, you can set the global `ca_certs` and enable cert verification with

```
import requests

requests.defaults.defaults['verify_cert'] = True
requests.defaults.defaults['ca_certs'] = '/etc/ssl/certs/ca-certificates.crt'
```

[1]: http://pypi.python.org/pypi/backports.ssl_match_hostname/