protractor icon indicating copy to clipboard operation
protractor copied to clipboard

self signed certificate error when trying webdriver-manager update

Open jakubkbak opened this issue 11 years ago • 6 comments

This is what I get:

Updating selenium standalone
downloading https://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar...
Updating chromedriver
downloading https://chromedriver.storage.googleapis.com/2.14/chromedriver_mac32.zip...
Error: Got error Error: self signed certificate in certificate chain from https://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar
Error: Got error Error: self signed certificate in certificate chain from https://chromedriver.storage.googleapis.com/2.14/chromedriver_mac32.zip

jakubkbak avatar Feb 24 '15 16:02 jakubkbak

This probably isn't a Protractor problem, but a configuration issue on your host. You should be able to reproduce this by just visiting the URL directly:

curl -O "https://chromedriver.storage.googleapis.com/2.14/chromedriver_mac32.zip"

(Or try it in a local web browser from the same host.) You should see the same error.

I ran into a similar problem recently and the issue was resolved by updating the trusted CA certificates on my host (the "ca-certificates" package on Debian Linux). But, I suspect there are lots of ways to break SSL trust chains, so the problem could be different in your case. (I'm pretty confident that googleapis.com isn't using a self-signed certificate.)

tullmann avatar Feb 24 '15 18:02 tullmann

@tullmann that sounds about right, I don't think webdriver-manager can fix all configuration issues. Closing as not a general protractor issue.

juliemr avatar Feb 25 '15 18:02 juliemr

It turned out to be a Kaspersky Antivirus HTTPS protection issue. Thanks for your help!

jakubkbak avatar Feb 25 '15 18:02 jakubkbak

I found this can be overcome by using the --ignore_ssl option: https://github.com/angular/protractor/issues/1477

I had previously tried manually doing a curl of the three libraries with the -k option, which did download the libraries, but that wasn't enough to get it installed as a start still wouldn't work. Judging by the console output when I ran update with the -ignore_ssl option, it looks like I simply forgot to unzip the files (and it also sets file permissions).

esoyke avatar Dec 21 '16 15:12 esoyke

@esoyke I recently only used set strict-ssl false but now it is not working. Not sure why I was trying ignore-ssl instead of ignore_ssl Thanks

vvedachalam avatar Feb 27 '18 14:02 vvedachalam

I had same issue there. Our machine is working on windows server. I have opened cmd prompt screen with as administrator. it is working like a charm now.

espekkaya avatar Mar 01 '18 07:03 espekkaya