title: Valid CA certificates
body: <p>I'm following <a href="https://medium.com/@sevcsik/authentication-using-https-client-certificates-3c9d270e8326" rel="nofollow noreferrer">this tutorial</a> and app works, but certificates I created with my server key works</p>
  
  <p>I understand that I need to pass ca option with certificates my server accepts, but I don't know how to specify what I need. </p>
  
  <p><strong>I would like to accept certificates from other CA, not only the ones signed with my server key.</strong></p>
  
  <pre><code> [The peer's certificate must be chainable to a CA trusted by the server for the connection to be authenticated. When using certificates that are not chainable to a well-known CA, the certificate's CA must be explicitly specified as a trusted or the connection will fail to authenticate.][1] 
  
  
  
     const opts = {
          key: fs.readFileSync('server_key.pem'),
          cert: fs.readFileSync('server_cert.pem'),
          requestCert: true,
          rejectUnauthorized: false,
          ca: [ fs.readFileSync('server_cert.pem') ],
      }
  </code></pre>
  
  <p>How can I do this?</p>