Search code examples
webdriver-manager

webdriver-manager update --ignore_ssl no longer works on 12.0.1


I'm getting an error when performing the following in 12.0.1:

webdriver-manager update --ignore_ssl

It just returns

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: self signed certificate in certificate chain
    at Error (native)
    at TLSSocket.<anonymous> (_tls_wrap.js:1060:38)
    at emitNone (events.js:86:13)
    at TLSSocket.emit (events.js:185:7)
    at TLSSocket._finishInit (_tls_wrap.js:584:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38)

I tried with an older version and it works fine

webdriver-manager: using local installed version 10.2.5
[13:51:46] I/downloader - ignoring SSL certificate
[13:51:46] I/downloader - ignoring SSL certificate
[13:51:46] I/downloader - ignoring SSL certificate

Solution

  • The issue here is the recent rework to the binary class was not passing the optional parameters including opt_proxy and opt_ignoreSSl when calling webdriver-manager update. When angular/webdriver PR #208 is merged and released, this should be fixed.

    Update: this has been merged and should have a release soon.