title: self-signed certificate configuration in Selenium Standalone and webdriverio
body: <p>How does one set in the configuration to accept insecure self-signed certificates.</p>
  
  <p>I'm using Selenium Standalone and webdriverio.</p>
  
  <p><a href="https://github.com/vvo/selenium-standalone" rel="nofollow noreferrer">https://github.com/vvo/selenium-standalone</a>
  <a href="https://github.com/webdriverio/webdriverio" rel="nofollow noreferrer">https://github.com/webdriverio/webdriverio</a></p>
  
  <p>I cannot read anywhere how to do this.</p>
  
  <p>I'm suing the code below:</p>
  
  <pre><code>const assert = require('assert');
  const { promisify } = require('util');
  
  const exec = promisify(require('child_process').exec);
  
  const selenium = require('selenium-standalone');
  const webdriverio = require('webdriverio');
  
  selenium.installAsync = promisify(selenium.install);
  selenium.startAsync = promisify(selenium.start);
  
  let browser;
  let seleniumChild;
  
  before(async function () {
      this.timeout(10 * 1000);
  
      try {
          // Remove any previous hanging sessions
          await exec('pkill -f selenium-standalone');
      } catch (error) {
          if (error.cmd !== 'pkill -f selenium-standalone') {
              console.error(error);
              process.exit(1);
          }
      }
  
      await selenium.installAsync({});
      seleniumChild = await selenium.startAsync({});
  
      const options = {
          desiredCapabilities: {
              browserName: 'chrome',
          },
          port: 4444,
      };
  
      browser = webdriverio.remote(options);
      await browser.init();
      await browser.url('http://google.com');
      const title = await browser.getTitle();
      console.log('Title -&gt;', title);
      await browser.end();
  });
  
  describe('test', function () {
      it('test', async function () {
          assert.ok(true);
      });
  });
  </code></pre>