Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Zjistit více

Firefox Selenium Webdriver Centos7 SSL_ERROR_HANDSHAKE_FAILURE_ALERT

  • 3 odpovědi
  • 1 má tento problém
  • 4 zobrazení
  • Poslední odpověď od 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)

Všechny odpovědi (3)

more options

Upravil uživatel PavelkoT dne

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 !