Skip to content

Commit

Permalink
Merge pull request grpc#3921 from murgatroid99/node_interop_default_c…
Browse files Browse the repository at this point in the history
…redentials

Make Node interop client use default roots file path
  • Loading branch information
murgatroid99 committed Oct 22, 2015
2 parents def77a5 + cc19b94 commit c66b901
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node/interop/interop_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c66b901

Please sign in to comment.