title: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=unknown state: unknown protocol
body: <p>I've followed many posts regarding this issue and non of them helped.
  I'm trying to connect using simplest irb commands:</p>
  
  <pre><code>require 'open-uri'
  open ('https://aristo4stu3.bgu.ac.il')
  </code></pre>
  
  <p>The weird thing is that for any other https uri I tried, it worked fine (i.e. <a href="https://google.com">https://google.com</a>).</p>
  
  <p>For debugging purposes, I even tried to disable SSL verification using:</p>
  
  <pre><code>OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
  </code></pre>
  
  <p>which didn't seemed to help either.</p>
  
  <p>My setup is (on AWS):</p>
  
  <pre><code>$ rvm -v
  
  rvm 1.21.3 (stable) by Wayne E. Seguin &lt;wayneeseguin@gmail.com&gt;, Michal Papis &lt;mpapis@gmail.com&gt; [https://rvm.io/]
  
  $ ruby -v
  ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]
  
  $ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description:    Ubuntu 13.04
  Release:    13.04
  Codename:   raring
  </code></pre>
  
  <p>Complete log:</p>
  
  <pre><code>2.0.0-p247 :001 &gt; require 'open-uri'
   =&gt; true 
  2.0.0-p247 :002 &gt; open('https://aristo4stu3.bgu.ac.il')
  OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=unknown state: (null)
      from /home/ubuntu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:918:in `connect'
      from /home/ubuntu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:918:in `block in connect'
      from /home/ubuntu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
      from /home/ubuntu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:918:in `connect'
      from /home/ubuntu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
      from /home/ubuntu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:851:in `start'
      from /home/ubuntu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/open-uri.rb:313:in `open_http'
      from /home/ubuntu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/open-uri.rb:708:in `buffer_open'
      from /home/ubuntu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/open-uri.rb:210:in `block in open_loop'
      from /home/ubuntu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/open-uri.rb:208:in `catch'
      from /home/ubuntu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/open-uri.rb:208:in `open_loop'
      from /home/ubuntu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/open-uri.rb:149:in `open_uri'
      from /home/ubuntu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/open-uri.rb:688:in `open'
      from /home/ubuntu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/open-uri.rb:34:in `open'
      from (irb):2
      from /home/ubuntu/.rvm/rubies/ruby-2.0.0-p247/bin/irb:16:in `&lt;main&gt;'
  </code></pre>