title: Issues making API requests to discourse instance from Heroku and locally using discourse_api gem
body: <p>Been banging my head against this and need to bounce thoughts against someone else. I keep getting locally:</p>
  
  <pre><code>OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed
  </code></pre>
  
  <p>I get on heroku:</p>
  
  <pre><code>openssl::ssl::sslerror: ssl_connect returned=1 errno=0 state=sslv3 read server certificate b: certificate verify failed
  </code></pre>
  
  <p>My discourse instance has a SSL certificate from DNSimple, so that is all working perfectly. On heroku, since I just have a rails API, I opted not to get an SSL cert for that since heroku already provides you with one, and just use the URL from your heroku instance.</p>
  
  <p>Now, I am able to use a Advanced Rest Client (Chrome extension) and make requests to my discourse instance no problem. Here is some code that I am using with the discourse_api gem.</p>
  
  <pre><code>discourse_client = DiscourseApi::Client.new('https://community.desta.co')
  discourse_client.api_key = ENV['COMMUNITY_API_KEY']
  # path to heroku cert, which I verified exists through `heroku run bash`
  discourse_client.ssl(ca_file: '/usr/lib/ssl/certs/ca-certificates.crt')
  discourse_client.api_username = 'system'
  </code></pre>
  
  <p>Maybe I'm misunderstanding certificates? Please help! Thanks</p>