-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
What problem are you facing?
The Node.js TLS ca option can be a string, buffer, or array of string/buffer. When passing an array, the Node.js driver only picks the first value due to this line:
What driver and relevant dependency versions are you using?
Node.js driver 4.4.0.
Steps to reproduce?
Create a MongoDB TLS server (or any, really), with a custom key/cert and then try to connect with the MongoDB driver’s ca option set to an array in which the corresponding CA certificate is not in first position.
- depends on
-
NODE-4032 Investigate NODE-4031 - TLS ca option cannot be used as array
- Closed