title: SSLError: hostname "W.X.Y.Z" does not match the server certificate
body: <p>I just started to learn Ruby and after some basic things, I'm trying to understand making REST calls to a service in ruby. I can make get requests to foursquare API without any trouble. On the other hand calls to Cisco CMX API give error. My ruby version is 2.1.2. I searched many solutions on the web but still got problem. This my shell command that I run.</p>
  
  <p>Working One</p>
  
  <pre><code>$resclient
  &gt;&gt; RestClient.get 'https://api.foursquare.com/v2/venues/search?ll=40.7,-74&amp;oauth_token=0ZDO1JMJ0PW2QTCDK50OGZ21UENHZ0Y3KIDQZJLLURTQNRQ2&amp;v=20150106'
  </code></pre>
  
  <p>This gives error</p>
  
  <pre><code>$restclient
  &gt;&gt; RestClient.get 'https://learning:learning@64.103.26.61/api/contextaware/v1/maps/.json'
  </code></pre>
  
  <p>My error log:</p>
  
  <pre><code>OpenSSL::SSL::SSLError: hostname "64.103.26.61" does not match the server certificate
  from /Users/apple/.rbenv/versions/2.1.2/lib/ruby/2.1.0/openssl/ssl.rb:139:in `post_connection_check'
  from /Users/apple/.rbenv/versions/2.1.2/lib/ruby/2.1.0/net/http.rb:922:in `connect'
  from /Users/apple/.rbenv/versions/2.1.2/lib/ruby/2.1.0/net/http.rb:863:in `do_start'
  from /Users/apple/.rbenv/versions/2.1.2/lib/ruby/2.1.0/net/http.rb:852:in `start'
  from /Users/apple/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rest-client-1.7.2/lib/restclient/request.rb:413:in `transmit'
  from /Users/apple/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rest-client-1.7.2/lib/restclient/request.rb:176:in `execute'
  from /Users/apple/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rest-client-1.7.2/lib/restclient/request.rb:41:in `execute'
  from /Users/apple/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rest-client-1.7.2/lib/restclient.rb:65:in `get'
  from (irb):3
  from /Users/apple/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rest-client-1.7.2/bin/restclient:93:in `&lt;top (required)&gt;'
  from /Users/apple/.rbenv/versions/2.1.2/bin/restclient:23:in `load'
  from /Users/apple/.rbenv/versions/2.1.2/bin/restclient:23:in `&lt;main&gt;'
  </code></pre>
  
  <p>Could you please give some advise? Thank you</p>