title: Protractor handshake failed when connecting to local server with https protocol
body: <p>I am trying to write protractor test but my application connects to WLS server which uses TEST certificates to authenticate for further communication.</p>
  
  <p>I have no option for webdriver update because of my company policy.So I have downloaded chrome driver and using it.</p>
  
  <p>Protractor : 5.4.2</p>
  
  <p>Chrome: 74.0.3729.169 </p>
  
  <p>Chrome Driver: chromedriver_74.0.3729.6_win32</p>
  
  <pre><code>// Protractor configuration file, see link for more information
  // https://github.com/angular/protractor/blob/master/lib/config.ts
  
  const {SpecReporter} = require('jasmine-spec-reporter');
  
  exports.config = {
    allScriptsTimeout: 30000,
    chromeDriver: '../lib/chromedriver_74.0.3729.6_win32.exe',
    specs: [
      './src/**/*.e2e-spec.ts'
    ],
    capabilities: {
      'browserName': 'chrome',
      'acceptInsecureCerts': true,
      'acceptSslCerts': true,
      chromeOptions: {
        useAutomationExtension: false,
        args: ['--headless']
      }
    },
    framework: 'jasmine',
    directConnect: true,
    troubleshoot: true,
    jasmineNodeOpts: {
      showTiming: true,
      showColors: true,
      defaultTimeoutInterval: 2500000,
      print: function () {
      }
    },
    onPrepare: function () {
      require('ts-node').register({
        project: require('path').join(__dirname, './tsconfig.e2e.json')
      });
      jasmine.getEnv().addReporter(new SpecReporter({spec: {displayStacktrace: true}}));
    }
  };
  </code></pre>
  
  <p>But I am getting error as below:</p>
  
  <blockquote>
    <p>[0712/104633.475:ERROR:ssl_client_socket_impl.cc(946)] handshake
    failed; returned -1, SSL error code 1, net_error -117
    [0712/104633.548:INFO:CONSOLE(27396)] "Http failure response for
    <a href="https://localhost:25000/app/api/disciplines" rel="nofollow noreferrer">https://localhost:25000/app/api/disciplines</a>: 0 Unknown Error", source:
    <a href="http://localhost:8082/app/main.js" rel="nofollow noreferrer">http://localhost:8082/app/main.js</a> (27396)</p>
  </blockquote>