Skip to content
Snippets Groups Projects
Commit 2d12214d authored by jboeuf's avatar jboeuf
Browse files

Merge pull request #3846 from murgatroid99/node_distribute_ssl_roots

Distribute roots.pem with the Node package
parents 8dbc4734 6d6009fe
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
"src/core", "src/core",
"test/proto", "test/proto",
"include", "include",
"etc",
"binding.gyp" "binding.gyp"
], ],
"main": "src/node/index.js", "main": "src/node/index.js",
......
...@@ -33,6 +33,14 @@ ...@@ -33,6 +33,14 @@
'use strict'; 'use strict';
var path = require('path');
var SSL_ROOTS_PATH = path.resolve(__dirname, '..', '..', 'etc', 'roots.pem');
if (!process.env.GRPC_DEFAULT_SSL_ROOTS_FILE_PATH) {
process.env.GRPC_DEFAULT_SSL_ROOTS_FILE_PATH = SSL_ROOTS_PATH;
}
var _ = require('lodash'); var _ = require('lodash');
var ProtoBuf = require('protobufjs'); var ProtoBuf = require('protobufjs');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment