Join the Mozilla’s Test Days event from 9–15 Jan to test the new Firefox address bar on Firefox Beta 135 and get a chance to win Mozilla swag vouchers! 🎁

Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Saiba mais

Esta discussão foi arquivada. Faça uma nova pergunta se precisa de ajuda.

Firefox Selenium Webdriver Centos7 SSL_ERROR_HANDSHAKE_FAILURE_ALERT

  • 3 respostas
  • 1 tem este problema
  • 4 visualizações
  • Última resposta de FredMcD

more options

Centos 7 Firefox 57 Gecko Driver 0.20.1

I am trying to access a url with SSL certificates, but getting the following error

         raise exception_class(message, screen, stacktrace)
     selenium.common.exceptions.WebDriverException: Message: Reached error page: about:neterror?e=nss

Failure2&u=https%3A//pagemon-controller.int.api.bbci.co.uk/tests%3Fpage_size%3D1&c=UTF-8&f=regular&d=A n%20error%20occurred%20during%20a%20connection%20to%20pagemon-controller.int.api.bbci.co.uk.%0A%0ASSL% 20peer%20was%20unable%20to%20negotiate%20an%20acceptable%20set%20of%20security%20parameters.%0A%0AErro r%20code%3A%20%3Ca%20id%3D%22errorCode%22%20title%3D%22SSL_ERROR_HANDSHAKE_FAILURE_ALERT%22%3ESSL_ERRO R_HANDSHAKE_FAILURE_ALERT%3C/a%3E%0A

I think I have tried every permutation of setting, currently I have the code as

   ff_profile = webdriver.FirefoxProfile()
   ff_profile.set_preference("network.proxy.type", 1)
   ff_profile.set_preference("network.proxy.http", 'www-cache.reith.bbc.co.uk')
   ff_profile.set_preference("network.proxy.http_port", 80)
   ff_profile.set_preference("network.proxy.ssl", 'www-cache.reith.bbc.co.uk')
   ff_profile.set_preference("network.proxy.ssl_port", 80)
   ff_profile.set_preference("webdriver_accept_untrusted_certs", True)
   ff_profile.set_preference("webdriver_assume_untrusted_certs", False)
   ff_profile.trustAllSSLCertificates = True
   ff_profile.update_preferences()
   caps = DesiredCapabilities.FIREFOX.copy()
   caps['acceptSslCerts'] = True
   caps['commandLineFlags'] = "--ssl-certificates-path=/etc/pki/tls/certs/ca-bundle.pem --ssl-client-certificate-file=/etc/pki/tls/certs/client.pem --ssl-client-key-file=/etc/pki/tls/private/client.key"
   options = Options()
   options.set_headless(headless=True)
   driver = webdriver.Firefox(firefox_profile=ff_profile, firefox_options=options, capabilities=caps)
   driver.implicitly_wait(10)
   driver.get(url)
Centos 7 Firefox 57 Gecko Driver 0.20.1 I am trying to access a url with SSL certificates, but getting the following error raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: Reached error page: about:neterror?e=nss Failure2&u=https%3A//pagemon-controller.int.api.bbci.co.uk/tests%3Fpage_size%3D1&c=UTF-8&f=regular&d=A n%20error%20occurred%20during%20a%20connection%20to%20pagemon-controller.int.api.bbci.co.uk.%0A%0ASSL% 20peer%20was%20unable%20to%20negotiate%20an%20acceptable%20set%20of%20security%20parameters.%0A%0AErro r%20code%3A%20%3Ca%20id%3D%22errorCode%22%20title%3D%22SSL_ERROR_HANDSHAKE_FAILURE_ALERT%22%3ESSL_ERRO R_HANDSHAKE_FAILURE_ALERT%3C/a%3E%0A I think I have tried every permutation of setting, currently I have the code as ff_profile = webdriver.FirefoxProfile() ff_profile.set_preference("network.proxy.type", 1) ff_profile.set_preference("network.proxy.http", 'www-cache.reith.bbc.co.uk') ff_profile.set_preference("network.proxy.http_port", 80) ff_profile.set_preference("network.proxy.ssl", 'www-cache.reith.bbc.co.uk') ff_profile.set_preference("network.proxy.ssl_port", 80) ff_profile.set_preference("webdriver_accept_untrusted_certs", True) ff_profile.set_preference("webdriver_assume_untrusted_certs", False) ff_profile.trustAllSSLCertificates = True ff_profile.update_preferences() caps = DesiredCapabilities.FIREFOX.copy() caps['acceptSslCerts'] = True caps['commandLineFlags'] = "--ssl-certificates-path=/etc/pki/tls/certs/ca-bundle.pem --ssl-client-certificate-file=/etc/pki/tls/certs/client.pem --ssl-client-key-file=/etc/pki/tls/private/client.key" options = Options() options.set_headless(headless=True) driver = webdriver.Firefox(firefox_profile=ff_profile, firefox_options=options, capabilities=caps) driver.implicitly_wait(10) driver.get(url)

Todas as respostas (3)

more options

Alterado por PavelkoT em

more options

PavelkoT said

[You are not alone]

sorry, is this helpful, takes me to Russia site

more options

Please provide public link(s) (no password) that we can check out. No Personal Information Please !