THRIFT-5924: UUID support for NodeTS
Client: ts,js
Patch: CJCombrink
This closes #3331
diff --git a/lib/nodejs/test/client.mjs b/lib/nodejs/test/client.mjs
index 6200dc6..4c3ec43 100644
--- a/lib/nodejs/test/client.mjs
+++ b/lib/nodejs/test/client.mjs
@@ -19,6 +19,8 @@
  * under the License.
  */
 
+import fs from "fs";
+import path from "path";
 import assert from "assert";
 import thrift from "thrift";
 import helpers from "./helpers.js";
@@ -93,7 +95,15 @@
 
 if (ssl) {
   if (type === "tcp" || type === "multiplex") {
+    options.secureProtocol = "TLS_method";
+    options.secureOptions = 0;
     options.rejectUnauthorized = false;
+    options.cert = fs.readFileSync(
+      path.resolve(import.meta.dirname, "../../../test/keys/client.crt"),
+    );
+    options.key = fs.readFileSync(
+      path.resolve(import.meta.dirname, "../../../test/keys/client.key"),
+    );
   } else if (type === "http") {
     options.nodeOptions = { rejectUnauthorized: false };
     options.https = true;