Distribute roots.pem with the Node package

pull/3846/head
murgatroid99 9 years ago
parent 60f406ab74
commit 6d6009fec5
  1. 1
      package.json
  2. 8
      src/node/index.js

@ -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 @@
'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');

Loading…
Cancel
Save