title: Error: unable to get local issuer certificate while running yarn command
body: <p>I have my own private npm registry <code>http://something</code>. I installed yarn and trying to run following command.</p>
  
  <pre><code>yarn
  </code></pre>
  
  <p>But it is giving following error.</p>
  
  <pre><code>Trace: 
    Error: unable to get local issuer certificate
        at Error (native)
        at TLSSocket.&lt;anonymous&gt; (_tls_wrap.js:1017:38)
        at emitNone (events.js:67:13)
        at TLSSocket.emit (events.js:166:7)
        at TLSSocket._init.ssl.onclienthello.ssl.oncertcb.TLSSocket._finishInit (_tls_wrap.js:582:8)
        at TLSWrap.ssl.onclienthello.ssl.oncertcb.ssl.onnewsession.ssl.onhandshakedone (_tls_wrap.js:424:38)
  </code></pre>
  
  <p>I found couple of github issue and resolution as well.</p>
  
  <p><a href="https://github.com/yarnpkg/yarn/issues/841" rel="noreferrer">https://github.com/yarnpkg/yarn/issues/841</a>
  <a href="https://github.com/yarnpkg/yarn/commit/b0611a6ee5220b0b1e955b271b6140640158f96c" rel="noreferrer">https://github.com/yarnpkg/yarn/commit/b0611a6ee5220b0b1e955b271b6140640158f96c</a> (Available in 0.16.0)</p>
  
  <p>Looks like i have to set <code>strict-ssl</code> to false in yarn config. I am unable to find exactly how can I do that. I tried giving option in following ways in package.json but didn't work.</p>
  
  <p>1)</p>
  
  <pre><code>{
  config: {
  "strict-ssl": false
  }
  }
  </code></pre>
  
  <p>2) </p>
  
  <pre><code>{
  "strict-ssl": false
  }
  </code></pre>
  
  <p>But still I am getting same error. Where am I doing wrong?</p>