title: Twilio app; twilio-ruby (3.4.2), SSL error
body: <p>I have followed the sample code on the <a href="https://github.com/twilio/twilio-ruby" rel="nofollow">Twilio github page</a> and it doesn't work. In my Rails console, it looks like this:</p>
  
  <pre><code>irb(main):039:0&gt; require 'twilio-ruby'
  =&gt; nil
  irb(main):040:0* account_sid='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
  =&gt; "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  irb(main):041:0&gt; auth_token='yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
  =&gt; "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
  irb(main):042:0&gt; client=Twilio::REST::Client.new account_sid, auth_token
  =&gt; &lt;Twilio::REST::Client @account_sid=AC1322312300a752f6e84a8254535ecce5&gt;
  irb(main):043:0&gt; client.account.sms.messages.create :from=&gt;'16135551234', :to=&gt;'16135551212',     :body=&gt;"Ada is fat"
  OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B:  certificate verify failed
      from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:678:in `connect'
      from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:678:in `block in connect'
      from C:/Ruby192/lib/ruby/1.9.1/timeout.rb:44:in `timeout'
      from C:/Ruby192/lib/ruby/1.9.1/timeout.rb:87:in `timeout'
      from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:678:in `connect'
      from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:637:in `do_start'
      from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:626:in `start'
      from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:1168:in `request'
      from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/net_http_ext.rb:51:in `request'
      from C:/Ruby192/lib/ruby/gems/1.9.1/gems/twilio-ruby-3.4.2/lib/twilio-ruby/rest/client.rb:214:in `connect_and_send'
      from C:/Ruby192/lib/ruby/gems/1.9.1/gems/twilio-ruby-3.4.2/lib/twilio-ruby/rest/client.rb:138:in `block (2 levels) in &lt;class:Client&gt;'
      from C:/Ruby192/lib/ruby/gems/1.9.1/gems/twilio-ruby-3.4.2/lib/twilio-ruby/rest/list_resource.rb:73:in `create'
      from (irb):43
      from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.11/lib/rails/commands/console.rb:44:in `start'
      from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.11/lib/rails/commands/console.rb:8:in `start'
      from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.11/lib/rails/commands.rb:23:in `&lt;top (required)&gt;'
      from script/rails:6:in `require'
      from script/rails:6:in `&lt;main&gt;'irb(main):044:0&gt;
  </code></pre>
  
  <p>What else do I need to do to get twilio-ruby to successfully send a text message? I have used these numbers and credentials for incoming calls, so they are good. </p>
  
  <p>** EDIT Dec 24, 2011 <strong><em>*</em>**</strong>
  Instead of running this code on my PC, I deployed it to heroku.com. Then I had no SSL errors and I was able to place outgoing calls. I'm very puzzled. </p>