Jenkins Plugins Install Issue





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







0















I am trying to install the version 2.162 of the open source Jenkins. The Jenkins successfully came up but, when I go to Manage Jenkins-> Manage Plugins, I see following error:




There were errors checking the update sites: SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid certification path to requested target




I know I need to add a certificate but not sure from which website, I can add the certificate from.



Can anyone help please.



Thanks










share|improve this question





























    0















    I am trying to install the version 2.162 of the open source Jenkins. The Jenkins successfully came up but, when I go to Manage Jenkins-> Manage Plugins, I see following error:




    There were errors checking the update sites: SSLHandshakeException:
    sun.security.validator.ValidatorException: PKIX path building failed:
    sun.security.provider.certpath.SunCertPathBuilderException: unable to
    find valid certification path to requested target




    I know I need to add a certificate but not sure from which website, I can add the certificate from.



    Can anyone help please.



    Thanks










    share|improve this question

























      0












      0








      0








      I am trying to install the version 2.162 of the open source Jenkins. The Jenkins successfully came up but, when I go to Manage Jenkins-> Manage Plugins, I see following error:




      There were errors checking the update sites: SSLHandshakeException:
      sun.security.validator.ValidatorException: PKIX path building failed:
      sun.security.provider.certpath.SunCertPathBuilderException: unable to
      find valid certification path to requested target




      I know I need to add a certificate but not sure from which website, I can add the certificate from.



      Can anyone help please.



      Thanks










      share|improve this question














      I am trying to install the version 2.162 of the open source Jenkins. The Jenkins successfully came up but, when I go to Manage Jenkins-> Manage Plugins, I see following error:




      There were errors checking the update sites: SSLHandshakeException:
      sun.security.validator.ValidatorException: PKIX path building failed:
      sun.security.provider.certpath.SunCertPathBuilderException: unable to
      find valid certification path to requested target




      I know I need to add a certificate but not sure from which website, I can add the certificate from.



      Can anyone help please.



      Thanks







      ssl jenkins






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 31 at 19:39









      newdevopsguynewdevopsguy

      11




      11






















          1 Answer
          1






          active

          oldest

          votes


















          0














          You need to install your network ssl certificate to your jre cacerts.



          NOTE:




          1. Confirm you are installing certificate to jre which is used by jenkins

          2. You are installing certificate in cacerts file of JRE only NOT JVM cacerts.

          3. You are installing root certificate i.e. top most in hierarchy not any of its children.

          4. if you still get PKIX for other URLs(After solving one url problem) repeat this process of installing root certificate of all of the URLs present in Log with PKIX.


          Step 1 : Get certificate.




          1. Open https://repo.maven.apache.org URL using chrome browser.

          2. Click on view certificate

          3. select Top most certificate on chain and drag and drop to desktop.
            enter image description here


          Step 2 : install certificate to cacerts



          you can use any method to get jre path of Jenkins I am using same jre for all of the applications so i am using MVN command to make it very simple. skip step 1 and 2 bellow if you know JRE path or your configuration is different.




          1. open command prompt or terminal and type command



          mvn -version





          1. Grab path to jre which would be shown to your after typing above command.

          2. Download this tool.
            OR
            You may use following command to install certificate


              keytool -import -noprompt -trustcacerts -alias <AliasName> -file <certificate> -keystore <KeystoreFile> -storepass <Password>



          1. select open option in that tool and navigate to that path which you grabbed at point 2. Now you are at jre folder. Open lib folder. Open security folder.(YOURMAVENJDKPATH/jre/lib/security/cacerts)

          2. Select cacerts file located in that security folder.Now you can see all the certificates in that tool. Tool would ask for password enter "changeit"(without double quote string changeit is the password)

          3. find out import certificate icon and click on it.

          4. Select the certificate which you downloaded in step 1.

          5. Save your changes and close the tool.


          Now your problem is resolved.






          share|improve this answer








          New contributor




          positivecrux is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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%2fsuperuser.com%2fquestions%2f1400728%2fjenkins-plugins-install-issue%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You need to install your network ssl certificate to your jre cacerts.



            NOTE:




            1. Confirm you are installing certificate to jre which is used by jenkins

            2. You are installing certificate in cacerts file of JRE only NOT JVM cacerts.

            3. You are installing root certificate i.e. top most in hierarchy not any of its children.

            4. if you still get PKIX for other URLs(After solving one url problem) repeat this process of installing root certificate of all of the URLs present in Log with PKIX.


            Step 1 : Get certificate.




            1. Open https://repo.maven.apache.org URL using chrome browser.

            2. Click on view certificate

            3. select Top most certificate on chain and drag and drop to desktop.
              enter image description here


            Step 2 : install certificate to cacerts



            you can use any method to get jre path of Jenkins I am using same jre for all of the applications so i am using MVN command to make it very simple. skip step 1 and 2 bellow if you know JRE path or your configuration is different.




            1. open command prompt or terminal and type command



            mvn -version





            1. Grab path to jre which would be shown to your after typing above command.

            2. Download this tool.
              OR
              You may use following command to install certificate


                keytool -import -noprompt -trustcacerts -alias <AliasName> -file <certificate> -keystore <KeystoreFile> -storepass <Password>



            1. select open option in that tool and navigate to that path which you grabbed at point 2. Now you are at jre folder. Open lib folder. Open security folder.(YOURMAVENJDKPATH/jre/lib/security/cacerts)

            2. Select cacerts file located in that security folder.Now you can see all the certificates in that tool. Tool would ask for password enter "changeit"(without double quote string changeit is the password)

            3. find out import certificate icon and click on it.

            4. Select the certificate which you downloaded in step 1.

            5. Save your changes and close the tool.


            Now your problem is resolved.






            share|improve this answer








            New contributor




            positivecrux is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.

























              0














              You need to install your network ssl certificate to your jre cacerts.



              NOTE:




              1. Confirm you are installing certificate to jre which is used by jenkins

              2. You are installing certificate in cacerts file of JRE only NOT JVM cacerts.

              3. You are installing root certificate i.e. top most in hierarchy not any of its children.

              4. if you still get PKIX for other URLs(After solving one url problem) repeat this process of installing root certificate of all of the URLs present in Log with PKIX.


              Step 1 : Get certificate.




              1. Open https://repo.maven.apache.org URL using chrome browser.

              2. Click on view certificate

              3. select Top most certificate on chain and drag and drop to desktop.
                enter image description here


              Step 2 : install certificate to cacerts



              you can use any method to get jre path of Jenkins I am using same jre for all of the applications so i am using MVN command to make it very simple. skip step 1 and 2 bellow if you know JRE path or your configuration is different.




              1. open command prompt or terminal and type command



              mvn -version





              1. Grab path to jre which would be shown to your after typing above command.

              2. Download this tool.
                OR
                You may use following command to install certificate


                  keytool -import -noprompt -trustcacerts -alias <AliasName> -file <certificate> -keystore <KeystoreFile> -storepass <Password>



              1. select open option in that tool and navigate to that path which you grabbed at point 2. Now you are at jre folder. Open lib folder. Open security folder.(YOURMAVENJDKPATH/jre/lib/security/cacerts)

              2. Select cacerts file located in that security folder.Now you can see all the certificates in that tool. Tool would ask for password enter "changeit"(without double quote string changeit is the password)

              3. find out import certificate icon and click on it.

              4. Select the certificate which you downloaded in step 1.

              5. Save your changes and close the tool.


              Now your problem is resolved.






              share|improve this answer








              New contributor




              positivecrux is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.























                0












                0








                0







                You need to install your network ssl certificate to your jre cacerts.



                NOTE:




                1. Confirm you are installing certificate to jre which is used by jenkins

                2. You are installing certificate in cacerts file of JRE only NOT JVM cacerts.

                3. You are installing root certificate i.e. top most in hierarchy not any of its children.

                4. if you still get PKIX for other URLs(After solving one url problem) repeat this process of installing root certificate of all of the URLs present in Log with PKIX.


                Step 1 : Get certificate.




                1. Open https://repo.maven.apache.org URL using chrome browser.

                2. Click on view certificate

                3. select Top most certificate on chain and drag and drop to desktop.
                  enter image description here


                Step 2 : install certificate to cacerts



                you can use any method to get jre path of Jenkins I am using same jre for all of the applications so i am using MVN command to make it very simple. skip step 1 and 2 bellow if you know JRE path or your configuration is different.




                1. open command prompt or terminal and type command



                mvn -version





                1. Grab path to jre which would be shown to your after typing above command.

                2. Download this tool.
                  OR
                  You may use following command to install certificate


                    keytool -import -noprompt -trustcacerts -alias <AliasName> -file <certificate> -keystore <KeystoreFile> -storepass <Password>



                1. select open option in that tool and navigate to that path which you grabbed at point 2. Now you are at jre folder. Open lib folder. Open security folder.(YOURMAVENJDKPATH/jre/lib/security/cacerts)

                2. Select cacerts file located in that security folder.Now you can see all the certificates in that tool. Tool would ask for password enter "changeit"(without double quote string changeit is the password)

                3. find out import certificate icon and click on it.

                4. Select the certificate which you downloaded in step 1.

                5. Save your changes and close the tool.


                Now your problem is resolved.






                share|improve this answer








                New contributor




                positivecrux is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.










                You need to install your network ssl certificate to your jre cacerts.



                NOTE:




                1. Confirm you are installing certificate to jre which is used by jenkins

                2. You are installing certificate in cacerts file of JRE only NOT JVM cacerts.

                3. You are installing root certificate i.e. top most in hierarchy not any of its children.

                4. if you still get PKIX for other URLs(After solving one url problem) repeat this process of installing root certificate of all of the URLs present in Log with PKIX.


                Step 1 : Get certificate.




                1. Open https://repo.maven.apache.org URL using chrome browser.

                2. Click on view certificate

                3. select Top most certificate on chain and drag and drop to desktop.
                  enter image description here


                Step 2 : install certificate to cacerts



                you can use any method to get jre path of Jenkins I am using same jre for all of the applications so i am using MVN command to make it very simple. skip step 1 and 2 bellow if you know JRE path or your configuration is different.




                1. open command prompt or terminal and type command



                mvn -version





                1. Grab path to jre which would be shown to your after typing above command.

                2. Download this tool.
                  OR
                  You may use following command to install certificate


                    keytool -import -noprompt -trustcacerts -alias <AliasName> -file <certificate> -keystore <KeystoreFile> -storepass <Password>



                1. select open option in that tool and navigate to that path which you grabbed at point 2. Now you are at jre folder. Open lib folder. Open security folder.(YOURMAVENJDKPATH/jre/lib/security/cacerts)

                2. Select cacerts file located in that security folder.Now you can see all the certificates in that tool. Tool would ask for password enter "changeit"(without double quote string changeit is the password)

                3. find out import certificate icon and click on it.

                4. Select the certificate which you downloaded in step 1.

                5. Save your changes and close the tool.


                Now your problem is resolved.







                share|improve this answer








                New contributor




                positivecrux is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer






                New contributor




                positivecrux is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 2 days ago









                positivecruxpositivecrux

                1011




                1011




                New contributor




                positivecrux is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                positivecrux is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                positivecrux is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f1400728%2fjenkins-plugins-install-issue%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

                    "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

                    Alcedinidae

                    Origin of the phrase “under your belt”?