aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/interop
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-10-22 09:47:30 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-10-22 09:47:30 -0700
commitcc19b94ba23470bc21edd5afa619a36baaeb1102 (patch)
tree72d477c096f0791cc941e3d51b0fe6196c57e854 /src/node/interop
parentbdf0a3ed5e099aab8eb19993fd4f8e445ba5fec1 (diff)
Make Node interop client use default roots file path
Diffstat (limited to 'src/node/interop')
-rw-r--r--src/node/interop/interop_client.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/node/interop/interop_client.js b/src/node/interop/interop_client.js
index b5061895cf..53ffa385bd 100644
--- a/src/node/interop/interop_client.js
+++ b/src/node/interop/interop_client.js
@@ -562,11 +562,11 @@ function runTest(address, host_override, test_case, tls, test_ca, done, extra) {
var ca_path;
if (test_ca) {
ca_path = path.join(__dirname, '../test/data/ca.pem');
+ var ca_data = fs.readFileSync(ca_path);
+ creds = grpc.credentials.createSsl(ca_data);
} else {
- ca_path = process.env.SSL_CERT_FILE;
+ creds = grpc.credentials.createSsl();
}
- var ca_data = fs.readFileSync(ca_path);
- creds = grpc.credentials.createSsl(ca_data);
if (host_override) {
options['grpc.ssl_target_name_override'] = host_override;
options['grpc.default_authority'] = host_override;