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

FirefoxProfile profile = new FirefoxProfile();
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?

2 Answers 2


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:

  • @dzieciou Did you try my answer? If not, what fixed it? Apr 27, 2016 at 13:23
  • 1
    it doesnt seem to work for mine..
    – pokeymond
    Jul 20, 2016 at 8:56

Try two options:

  • Upgrade your browser
  • Ask the server maintainer to upgrade the security certificates.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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