• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2const common = require('../common');
3const fixtures = require('../common/fixtures');
4
5// Check ca option can contain concatenated certs by prepending an unrelated
6// non-CA cert and showing that agent6's CA root is still found.
7
8const {
9  connect, keys
10} = require(fixtures.path('tls-connect'));
11
12connect({
13  client: {
14    checkServerIdentity: (servername, cert) => { },
15    ca: `${keys.agent1.cert}\n${keys.agent6.ca}`,
16  },
17  server: {
18    cert: keys.agent6.cert,
19    key: keys.agent6.key,
20  },
21}, common.mustSucceed((pair, cleanup) => {
22  return cleanup();
23}));
24