title: Shopify - creating session for private app
body: <p>I am trying to create an app using RoR so I can test the ShopifyAPI.
  I am using a private App I created via the partner admin portal.</p>
  
  <p>I tried to create a session using the password generated. The session seems to be valid. </p>
  
  <p>login_controller:</p>
  
  <pre><code>    def index
      debugger
      sess = ShopifyAPI::Session.new('a75999989b7715f73ae5273497b9bfcb:9eb9f578d9fcfd753713e079@mante-hudson7934.myshopify.com', '9eb9f578d9fcfd753713e0795')
      sess.valid?
      session[:shopify] = sess        
        flash[:notice] = "Logged in"
        redirect_to return_address
        session[:return_to] = nil
    end
  </code></pre>
  
  <p>But when I try to get all the products (products = ShopifyAPI::Product.find(:all, :params => {:limit => 10})</p>
  
  <p>I end up with a 500 error.</p>
  
  <p>here is the debug trace I have:</p>
  
  <pre><code>    1: ShopifyAPI::Base.site = https://a75999989b7715f73ae5273497b9bfcb:9eb9f578d9fcfd753713e079596d4fbd@mante-hudson7934.myshopify.com/admin/
  ~/.rvm/gems/ruby-1.9.3-p194@rails328/gems/shopify_app-4.0.0/lib/shopify_app/login_protection.rb:9
  ShopifyAPI::Base.clear_session
  </code></pre>
  
  <p>and in the browser I have a exception:
  "Connection reset by peer - SSL_connect"</p>
  
  <p>Apparently there is a problem with my session...</p>
  
  <p>Is there anything I am missing?</p>
  
  <p>Thank you</p>
  
  <p>--EDIT--</p>
  
  <p>Actually I tried grabing the products via IRB and end up with a the same 500 Error as well:
  "Connection reset by peer - SSL_connect"</p>
  
  <p>Not sure why I have this error?</p>
  
  <p>Regis</p>