title: check Python requests with charles proxy for HTTPS
body: <p>I want to debug some python requests using charles proxy.</p>
  
  <p>I need to include the certificate for charles on the call, but is not working</p>
  
  <pre><code>import requests
  endpoint_url = 'https://www.httpsnow.org/'
  r = requests.get(endpoint_url, verify=True, cert='/Users/iosdev/DopPy/charles.crt')
  
  print "empexo"
  print r
  </code></pre>
  
  <p>I have added the https address on Charles,</p>
  
  <p>I get on Charles: </p>
  
  <blockquote>
    <p>SSLHandshake: Remote host closed connection during handshake</p>
  </blockquote>
  
  <p>and on python the log with error</p>
  
  <pre><code>empexo
  Traceback (most recent call last):
    File "/Users/iosdev/DopPy/GetCelebs.py", line 15, in &lt;module&gt;
      r = requests.get(endpoint_url, verify=True, cert='/Users/iosdev/DopPy/charles.crt')
    File "/Users/iosdev/VenvPY26/lib/python2.6/site-packages/requests/api.py", line 65, in get
      return request('get', url, **kwargs)
    File "/Users/iosdev/VenvPY26/lib/python2.6/site-packages/requests/api.py", line 49, in request
      response = session.request(method=method, url=url, **kwargs)
    File "/Users/iosdev/VenvPY26/lib/python2.6/site-packages/requests/sessions.py", line 461, in request
      resp = self.send(prep, **send_kwargs)
    File "/Users/iosdev/VenvPY26/lib/python2.6/site-packages/requests/sessions.py", line 573, in send
      r = adapter.send(request, **kwargs)
    File "/Users/iosdev/VenvPY26/lib/python2.6/site-packages/requests/adapters.py", line 431, in send
      raise SSLError(e, request=request)
  requests.exceptions.SSLError: [Errno 336265225] _ssl.c:341: error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib
  
  Process finished with exit code 1
  </code></pre>