Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while executing command: insecure certificate #393

Closed
zubrick opened this issue Aug 3, 2018 · 2 comments
Closed

Error while executing command: insecure certificate #393

zubrick opened this issue Aug 3, 2018 · 2 comments

Comments

@zubrick
Copy link

zubrick commented Aug 3, 2018

Hello,

When setting the preference accept_ssl_certs to 1 in the firefox profile:

my $profile = Selenium::Remote::Driver::Firefox::Profile->new();
$profile->set_boolean_preference("accept_ssl_certs" => 1);
my $driver = Selenium::Remote::Driver->new( 'firefox_profile' => $profile );

my test crashes with the error:

Error while executing command: insecure certificate at /usr/local/share/perl/5.20.2/Selenium/Remote/Driver.pm line 388.
 at /usr/local/share/perl/5.20.2/Selenium/Remote/Driver.pm line 345.

Previous behaviour of Selenium was to auto accept the certificate, but I had to update it and all my tests fail because of that.
I am using last version of Selenium::Remote::Driver available through CPAN (1.28), last version of geckodriver (0.21) and Firefox 58

Best regards

Zubrick

@teodesian
Copy link
Owner

They keep breaking this upstream, I'll see if there's a workaround soon

teodesian added a commit that referenced this issue Aug 17, 2018
In the fix to #371, we just nuked them from orbit.
Obviously this means caps were ignored, but I could see no other
option to get the darn thing working.

I had the right guess today though, and this should fix those regressions.
@teodesian
Copy link
Owner

figured it out. chromedriver is a big baby when you pass it caps it doesn't understand rather than ignoring them like all other drivers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants