3

I'm trying to access SSL-protected site with invalid certificate (unknown issuer). I followed instructions and configured Firefox

FirefoxProfile profile = new FirefoxProfile();
profile.setAcceptUntrustedCertificates(true);
profile.setAssumeUntrustedCertificateIssuer(true);
EventFiringWebDriver driver = new EventFiringWebDriver(new FirefoxDriver(profile));

But I keep getting

An error occurred during a connection to somedomain.com. SSL peer was unable to negotiate an acceptable set of security parameters. Error code: SSL_ERROR_HANDSHAKE_FAILURE_ALERT

  • The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.

I'm using FirefoxWebDriver 2.48.2 with Firefox 45.

What I am doing wrong?

1

setAssumeUntrustedCertificateIssuer is likely the problem. It is easy to find out if a certificate has expired or does not match the host from which it was served, but hard to find out if the issuer of the certificate is untrusted. Setting setAssumeUntrustedCertificateIssuer to true means assume untrusted which is the opposite of what you want. Try:

profile.setAssumeUntrustedCertificateIssuer(false);
| improve this answer | |
  • @dzieciou Did you try my answer? If not, what fixed it? – MikeJRamsey56 Apr 27 '16 at 13:23
  • 1
    it doesnt seem to work for mine.. – rrw Jul 20 '16 at 8:56
0

Try two options:

  • Upgrade your browser
  • Ask the server maintainer to upgrade the security certificates.
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.