title: restify JSON client returns DEPTH_ZERO_SELF_SIGNED_CERT error
body: <p>I have server runing on heroku with heroku SSL addon. 
  Server is created with this options:</p>
  
  <pre><code>name: 'ServerName',
  version: '1.0.0',
  </code></pre>
  
  <p>And the I run server like this:</p>
  
  <pre><code>    server.listen(process.env.PORT || 5000)
  </code></pre>
  
  <p>And it works fine, I can call my api for example: <a href="https://myapp.herokuapp.com/some-path" rel="nofollow">https://myapp.herokuapp.com/some-path</a>. SSL cert on heroku is self-signed so there is a big warning in webbrowser but I can click continue and it works.</p>
  
  <p>When I want to call my server with restify JSON client, created as follows:</p>
  
  <pre><code>var client   = restify.createJsonClient({
      url: 'https://myapp.herokuapp.com'
  });
  </code></pre>
  
  <p>and then call some api like this <code>client.get('/some-path',...)</code> then client returns error:</p>
  
  <pre><code>DEPTH_ZERO_SELF_SIGNED_CERT
  </code></pre>
  
  <p>I tried to set option <code>rejectUnauthorized</code> on both server and client (as constructor option) but it didnt help...</p>