Selenium on Docker: SSLHandshakeException: > sun.security.validator.ValidatorException: PKIX path building failed: Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Resolving javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed Error?null pointer exception_using java selenium webdriver with TestNGHow to make HTTPS post request in Java?I am trying to get data from excel sheet and pass those test data into the login & password field but I am getting following errorRunning Selenium with IESelenium pageFactory NullPointerException for driverData provider mismatch in Selenium with TestNGGetting “java.lang.NullPointerException” upon execution of selenium scriptError while trying out touch actions using Appium

How do I use the new nonlinear finite element in Mathematica 12 for this equation?

Time to Settle Down!

Why do early math courses focus on the cross sections of a cone and not on other 3D objects?

What do you call the main part of a joke?

Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?

Morning, Afternoon, Night Kanji

How to react to hostile behavior from a senior developer?

How would a mousetrap for use in space work?

What is a fractional matching?

Is there a kind of relay only consumes power when switching?

What is the topology associated with the algebras for the ultrafilter monad?

Do wooden building fires get hotter than 600°C?

Effects on objects due to a brief relocation of massive amounts of mass

What's the meaning of "fortified infraction restraint"?

Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?

Performance gap between vector<bool> and array

ArcGIS Pro Python arcpy.CreatePersonalGDB_management

When a candle burns, why does the top of wick glow if bottom of flame is hottest?

Is grep documentation about ignoring case wrong, since it doesn't ignore case in filenames?

Hangman Game with C++

How to tell that you are a giant?

Maximum summed subsequences with non-adjacent items

Is a ledger board required if the side of my house is wood?

How come Sam didn't become Lord of Horn Hill?



Selenium on Docker: SSLHandshakeException: > sun.security.validator.ValidatorException: PKIX path building failed:



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!Resolving javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed Error?null pointer exception_using java selenium webdriver with TestNGHow to make HTTPS post request in Java?I am trying to get data from excel sheet and pass those test data into the login & password field but I am getting following errorRunning Selenium with IESelenium pageFactory NullPointerException for driverData provider mismatch in Selenium with TestNGGetting “java.lang.NullPointerException” upon execution of selenium scriptError while trying out touch actions using Appium



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















We have installed 3 docker selenium containers



a. Selenium hub



b. Selenium Grid - Firefox



c. Selenium Grib - Chrome



We are trying to do a full SSL implementation for this setup.
Here's what we have done so far:



Installed Apache http server on the same linux box and enabled SSL on it and then mapped the selenium hub port 4444 to the apache port 8443 (on which we have already enabled SSL).



This seemed to have worked at first as we were able to open selenium hub using https URL, but when we run a selenium test, it fails with below error. Although, the test runs fine when we use http url.



Communication flow:
8443 Apache (SSL)----> 4444 Selenium hub (non-SSL) ------> Grids (NON-ssl)




Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host:
'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version:
'1.8.0_131' Driver info: driver.version: RemoteWebDriver at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:658)
at
java.lang.reflect.Method.invoke(Method.java:498) at
org.testng.TestRunner.run(TestRunner.java:624) at
org.testng.SuiteRunner.runTest(SuiteRunner.java:359) at
org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354) at
org.testng.SuiteRunner.privateRun(SuiteRunner.java:312) at
org.testng.SuiteRunner.run(SuiteRunner.java:261) at
org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at



org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
Caused by: javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid certification path to requested target at
sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at
sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949) at
sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302) at




We have tried the following things to fix this:



  1. Install the apache server(apache server linux box) certificates in each java cacerts (keystore) on each docker container.


  2. Install the client certificates (of the url we are testing via selenium) in each cacerts. However, that didn't work either.


We are thinking of 3 options now:



  1. Either enable SSL on docker hub itself. I am not very sure where to install the certs in docker.


  2. Fix this issue.


  3. Reconfigure selenium to ignore the ssl certificates.


Any help would be appreciated. Thanks.










share|improve this question




























    0















    We have installed 3 docker selenium containers



    a. Selenium hub



    b. Selenium Grid - Firefox



    c. Selenium Grib - Chrome



    We are trying to do a full SSL implementation for this setup.
    Here's what we have done so far:



    Installed Apache http server on the same linux box and enabled SSL on it and then mapped the selenium hub port 4444 to the apache port 8443 (on which we have already enabled SSL).



    This seemed to have worked at first as we were able to open selenium hub using https URL, but when we run a selenium test, it fails with below error. Although, the test runs fine when we use http url.



    Communication flow:
    8443 Apache (SSL)----> 4444 Selenium hub (non-SSL) ------> Grids (NON-ssl)




    Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
    System info: host:
    'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version:
    '1.8.0_131' Driver info: driver.version: RemoteWebDriver at
    org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:658)
    at
    java.lang.reflect.Method.invoke(Method.java:498) at
    org.testng.TestRunner.run(TestRunner.java:624) at
    org.testng.SuiteRunner.runTest(SuiteRunner.java:359) at
    org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354) at
    org.testng.SuiteRunner.privateRun(SuiteRunner.java:312) at
    org.testng.SuiteRunner.run(SuiteRunner.java:261) at
    org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at



    org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
    Caused by: javax.net.ssl.SSLHandshakeException:
    sun.security.validator.ValidatorException: PKIX path building failed:
    sun.security.provider.certpath.SunCertPathBuilderException: unable to
    find valid certification path to requested target at
    sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at
    sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949) at
    sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302) at




    We have tried the following things to fix this:



    1. Install the apache server(apache server linux box) certificates in each java cacerts (keystore) on each docker container.


    2. Install the client certificates (of the url we are testing via selenium) in each cacerts. However, that didn't work either.


    We are thinking of 3 options now:



    1. Either enable SSL on docker hub itself. I am not very sure where to install the certs in docker.


    2. Fix this issue.


    3. Reconfigure selenium to ignore the ssl certificates.


    Any help would be appreciated. Thanks.










    share|improve this question
























      0












      0








      0








      We have installed 3 docker selenium containers



      a. Selenium hub



      b. Selenium Grid - Firefox



      c. Selenium Grib - Chrome



      We are trying to do a full SSL implementation for this setup.
      Here's what we have done so far:



      Installed Apache http server on the same linux box and enabled SSL on it and then mapped the selenium hub port 4444 to the apache port 8443 (on which we have already enabled SSL).



      This seemed to have worked at first as we were able to open selenium hub using https URL, but when we run a selenium test, it fails with below error. Although, the test runs fine when we use http url.



      Communication flow:
      8443 Apache (SSL)----> 4444 Selenium hub (non-SSL) ------> Grids (NON-ssl)




      Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
      System info: host:
      'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version:
      '1.8.0_131' Driver info: driver.version: RemoteWebDriver at
      org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:658)
      at
      java.lang.reflect.Method.invoke(Method.java:498) at
      org.testng.TestRunner.run(TestRunner.java:624) at
      org.testng.SuiteRunner.runTest(SuiteRunner.java:359) at
      org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354) at
      org.testng.SuiteRunner.privateRun(SuiteRunner.java:312) at
      org.testng.SuiteRunner.run(SuiteRunner.java:261) at
      org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at



      org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
      Caused by: javax.net.ssl.SSLHandshakeException:
      sun.security.validator.ValidatorException: PKIX path building failed:
      sun.security.provider.certpath.SunCertPathBuilderException: unable to
      find valid certification path to requested target at
      sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at
      sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949) at
      sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302) at




      We have tried the following things to fix this:



      1. Install the apache server(apache server linux box) certificates in each java cacerts (keystore) on each docker container.


      2. Install the client certificates (of the url we are testing via selenium) in each cacerts. However, that didn't work either.


      We are thinking of 3 options now:



      1. Either enable SSL on docker hub itself. I am not very sure where to install the certs in docker.


      2. Fix this issue.


      3. Reconfigure selenium to ignore the ssl certificates.


      Any help would be appreciated. Thanks.










      share|improve this question














      We have installed 3 docker selenium containers



      a. Selenium hub



      b. Selenium Grid - Firefox



      c. Selenium Grib - Chrome



      We are trying to do a full SSL implementation for this setup.
      Here's what we have done so far:



      Installed Apache http server on the same linux box and enabled SSL on it and then mapped the selenium hub port 4444 to the apache port 8443 (on which we have already enabled SSL).



      This seemed to have worked at first as we were able to open selenium hub using https URL, but when we run a selenium test, it fails with below error. Although, the test runs fine when we use http url.



      Communication flow:
      8443 Apache (SSL)----> 4444 Selenium hub (non-SSL) ------> Grids (NON-ssl)




      Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
      System info: host:
      'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version:
      '1.8.0_131' Driver info: driver.version: RemoteWebDriver at
      org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:658)
      at
      java.lang.reflect.Method.invoke(Method.java:498) at
      org.testng.TestRunner.run(TestRunner.java:624) at
      org.testng.SuiteRunner.runTest(SuiteRunner.java:359) at
      org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354) at
      org.testng.SuiteRunner.privateRun(SuiteRunner.java:312) at
      org.testng.SuiteRunner.run(SuiteRunner.java:261) at
      org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at



      org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
      Caused by: javax.net.ssl.SSLHandshakeException:
      sun.security.validator.ValidatorException: PKIX path building failed:
      sun.security.provider.certpath.SunCertPathBuilderException: unable to
      find valid certification path to requested target at
      sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at
      sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949) at
      sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302) at




      We have tried the following things to fix this:



      1. Install the apache server(apache server linux box) certificates in each java cacerts (keystore) on each docker container.


      2. Install the client certificates (of the url we are testing via selenium) in each cacerts. However, that didn't work either.


      We are thinking of 3 options now:



      1. Either enable SSL on docker hub itself. I am not very sure where to install the certs in docker.


      2. Fix this issue.


      3. Reconfigure selenium to ignore the ssl certificates.


      Any help would be appreciated. Thanks.







      selenium docker ssl ssl-certificate






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 8 at 20:18









      taruntarun

      64




      64






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55070439%2fselenium-on-docker-sslhandshakeexception-sun-security-validator-validatorexc%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55070439%2fselenium-on-docker-sslhandshakeexception-sun-security-validator-validatorexc%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          1928 у кіно

          Захаров Федір Захарович

          Ель Греко