title: NodeJS supertest - testing routes with certificates
body: <p>I'm testing my NodeJS application with <a href="https://npmjs.org/package/supertest" rel="nofollow">supertest</a>. My application is asking for a certificate, with the CN of the certificate my user gets authorized against the application.</p>
  
  <p>While testing my first route, I got an error complaining about my self signed certificate.</p>
  
  <p>I wonder if there is a way to set a valid or invalid certificate while testing my routes?</p>