title: OpenSSL::SSL::SSLError "certificate verify failed" when using Ruby Gem 'cryptsy-api'
body: <p>I'm trying to use the cryptsy-api gem, but seem to have some sort of SSL error. Here's the output in my irb session:</p>
  
  <p>First I load the api:</p>
  
  <pre><code>$ irb
  2.1.2 :001 &gt; require 'cryptsy/api'
   =&gt; true
  </code></pre>
  
  <p>Then I set the two variables needed to make a connection (using fake names for this example)</p>
  
  <pre><code>2.1.2 :002 &gt; key = 'thisisasecretkeythisisasecretkeythisisa'
   =&gt; "thisisasecretkeythisisasecretkeythisisa"
  2.1.2 :003 &gt; secret = 'thisisasecretkeythisisasecretkeythisisasecretkeythisisasecretkeythisisasecretkey'
   =&gt; "thisisasecretkeythisisasecretkeythisisasecretkeythisisasecretkeythisisasecretkey"
  </code></pre>
  
  <p>Now I instantiate a new instance:</p>
  
  <pre><code>2.1.2 :004 &gt; cryptsy = Cryptsy::API::Client.new(key, secret)
   =&gt; #&lt;Cryptsy::API::Client:0x007fcf6b81aff0 @key="thisisasecretkeythisisasecretkeythisisa",     @secret="thisisasecretkeythisisasecretkeythisisasecretkeythisisasecretkeythisisasecretkey", @private_caller=nil&gt;
  </code></pre>
  
  <p>Here's where I get the error. When I call a method on the instance, it throws this error:</p>
  
  <pre><code>2.1.2 :005 &gt; cryptsy.getinfo
  OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
    from /Users/caymanner/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/http.rb:920:in `connect'
    from /Users/caymanner/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/http.rb:920:in `block in connect'
    from /Users/caymanner/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/timeout.rb:76:in `timeout'
    from /Users/caymanner/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/http.rb:920:in `connect'
    from /Users/caymanner/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/http.rb:863:in `do_start'
    from /Users/caymanner/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/http.rb:852:in `start'
    from /Users/caymanner/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/http.rb:1369:in `request'
    from /Users/caymanner/.rvm/gems/ruby-2.1.2/gems/httparty-0.13.1/lib/httparty/request.rb:93:in `perform'
    from /Users/caymanner/.rvm/gems/ruby-2.1.2/gems/httparty-0.13.1/lib/httparty.rb:521:in `perform_request'
    from /Users/caymanner/.rvm/gems/ruby-2.1.2/gems/httparty-0.13.1/lib/httparty.rb:473:in `post'
    from /Users/caymanner/.rvm/gems/ruby-2.1.2/gems/cryptsy-api-0.1.4/lib/cryptsy/api.rb:36:in `execute_method'
    from /Users/caymanner/.rvm/gems/ruby-2.1.2/gems/cryptsy-api-0.1.4/lib/cryptsy/api.rb:204:in `call_private_api'
    from /Users/caymanner/.rvm/gems/ruby-2.1.2/gems/cryptsy-api-0.1.4/lib/cryptsy/api.rb:82:in `getinfo'
    from (irb):5
    from /Users/caymanner/.rvm/rubies/ruby-2.1.2/bin/irb:11:in `&lt;main&gt;'
  2.1.2 :006 &gt;
  </code></pre>
  
  <p>Any ideas why this happens? Am I forgetting to load some other gem?</p>