The way I have seen Mutual Auth done before, there are three modes:
1. Don't request a client cert (No client cert auth)
(don't request client cert)2. Request a client cert but don't fail if one is not provided (Optional client cert auth)
(request client cert but don't require)3. Request a client cert and if it doesn't match a provided CA, fail (Required client cert auth)
(request client cert and require)Reading the docs:
- rejectUnauthorized <boolean> If not false the server will reject any connection which is not authorized with the list of supplied CAs. This option only has an effect if requestCert is true. Default: true. <- This is require or not require client cert
- requestCert <boolean> If true the server will request a certificate from clients that connect and attempt to verify that certificate. Default: false. <- This is request or not request client cert