title: Python requests SSL Hostname doesn't match error
body: <p>I have been trying to access an API which is secured using SSL using python requests library as given below</p>
  
  <pre><code>requests.get('https://path/to/url',cert=('cert.pem','key.pem'),verify='ca.pem')
  </code></pre>
  
  <p>but am getting an error </p>
  
  <pre><code>File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 385, in send
  raise SSLError(e)
  requests.exceptions.SSLError: hostname '10.10.10.10' doesn't match u'*' # IP address is not real.
  </code></pre>
  
  <p>If  my understanding is right this certificates can be used with any server since they are signed with '*' as domain.</p>
  
  <p>I guess the requests library is making a strict match of hostname verification instead of regular expression matching.</p>
  
  <p>so my question is whether it is a bug with requests library or is this the way it is indented to work?</p>
  
  <p>It is working perfectly fine when I use curl command as given below.</p>
  
  <pre><code>curl https://path/to/url  --cert cert.pem  --key key.pem --cacert ca.pem
  </code></pre>
  
  <p>So i have two possibilities, either curl library is not performing hostname verification or they are doing it with regular expression.</p>
  
  <p>Where am i going wrong here? Expecting a detailed answer</p>