title: Axios self signed certificate error even when supplying certificates
body: <p>I am using axios to connect to an internal server. The network admin has given me the root certificate chain to access the server, however axios still gives me an error when I supply them.</p>
  
  <pre><code>const certBundle = [
      fs.readFileSync(__dirname + '/certs/master.pem', 'ascii'),
      fs.readFileSync(__dirname + '/certs/root.pem', 'ascii')
  ];
  const agent = new https.Agent({
      ca: certBundle
  });
  let response = await axios.post(req.body.request, {httpsAgent: agent});
  </code></pre>
  
  <p>Are the certificates actually being used by axios?</p>