SSL: CERTIFICATE_VERIFY_FAILED error in a docker container












3















I'm running into the following error message when I do easy_install pip:



root@ff45b7b74944:/# easy_install pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Download error on https://pypi.python.org/simple/pip/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading [--https link here, like above--]
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')


This is run in a docker container that runs on ubuntu:latest. I'm leaning towards the fact that it can't do openssl stuff (https link), but I'm not completely certain. If anyone has a solution or any troubleshooting methods, I'd love to find out.



Thanks.










share|improve this question























  • well, unfourtunately that error indicates a wide range of potential errors: websense.com/content/support/library/web/v762/wcg_ssl_cve/… See here for some solutions to problems with this error and PIP: stackoverflow.com/questions/32772895/…

    – Frank Thomas
    Jul 14 '16 at 22:01


















3















I'm running into the following error message when I do easy_install pip:



root@ff45b7b74944:/# easy_install pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Download error on https://pypi.python.org/simple/pip/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading [--https link here, like above--]
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')


This is run in a docker container that runs on ubuntu:latest. I'm leaning towards the fact that it can't do openssl stuff (https link), but I'm not completely certain. If anyone has a solution or any troubleshooting methods, I'd love to find out.



Thanks.










share|improve this question























  • well, unfourtunately that error indicates a wide range of potential errors: websense.com/content/support/library/web/v762/wcg_ssl_cve/… See here for some solutions to problems with this error and PIP: stackoverflow.com/questions/32772895/…

    – Frank Thomas
    Jul 14 '16 at 22:01
















3












3








3








I'm running into the following error message when I do easy_install pip:



root@ff45b7b74944:/# easy_install pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Download error on https://pypi.python.org/simple/pip/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading [--https link here, like above--]
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')


This is run in a docker container that runs on ubuntu:latest. I'm leaning towards the fact that it can't do openssl stuff (https link), but I'm not completely certain. If anyone has a solution or any troubleshooting methods, I'd love to find out.



Thanks.










share|improve this question














I'm running into the following error message when I do easy_install pip:



root@ff45b7b74944:/# easy_install pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Download error on https://pypi.python.org/simple/pip/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading [--https link here, like above--]
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')


This is run in a docker container that runs on ubuntu:latest. I'm leaning towards the fact that it can't do openssl stuff (https link), but I'm not completely certain. If anyone has a solution or any troubleshooting methods, I'd love to find out.



Thanks.







python ssl docker pip easy-install






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jul 14 '16 at 21:57









cidcid

1613




1613













  • well, unfourtunately that error indicates a wide range of potential errors: websense.com/content/support/library/web/v762/wcg_ssl_cve/… See here for some solutions to problems with this error and PIP: stackoverflow.com/questions/32772895/…

    – Frank Thomas
    Jul 14 '16 at 22:01





















  • well, unfourtunately that error indicates a wide range of potential errors: websense.com/content/support/library/web/v762/wcg_ssl_cve/… See here for some solutions to problems with this error and PIP: stackoverflow.com/questions/32772895/…

    – Frank Thomas
    Jul 14 '16 at 22:01



















well, unfourtunately that error indicates a wide range of potential errors: websense.com/content/support/library/web/v762/wcg_ssl_cve/… See here for some solutions to problems with this error and PIP: stackoverflow.com/questions/32772895/…

– Frank Thomas
Jul 14 '16 at 22:01







well, unfourtunately that error indicates a wide range of potential errors: websense.com/content/support/library/web/v762/wcg_ssl_cve/… See here for some solutions to problems with this error and PIP: stackoverflow.com/questions/32772895/…

– Frank Thomas
Jul 14 '16 at 22:01












3 Answers
3






active

oldest

votes


















3














adding RUN apt-get install ca-certificates to my Dockerfile worked for me.






share|improve this answer































    0














    Solved:



    Added the following to the Dockerfile:



    RUN mkdir /etc/pki
    RUN mkdir /etc/pki/tls
    RUN mkdir /etc/pki/tls/certs
    RUN apt-get install wget
    RUN wget http://curl.haxx.se/ca/cacert.pem
    RUN mv cacert.pem ca-bundle.crt
    RUN mv ca-bundle.crt /etc/pki/tls/certs





    share|improve this answer































      0














      Fresh installation of below packages solved my problem



      apt-get -yqq install build-essential libssl-dev libffi-dev python3-pip python3-dev gnupg





      share|improve this answer























        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%2f1101004%2fssl-certificate-verify-failed-error-in-a-docker-container%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        3














        adding RUN apt-get install ca-certificates to my Dockerfile worked for me.






        share|improve this answer




























          3














          adding RUN apt-get install ca-certificates to my Dockerfile worked for me.






          share|improve this answer


























            3












            3








            3







            adding RUN apt-get install ca-certificates to my Dockerfile worked for me.






            share|improve this answer













            adding RUN apt-get install ca-certificates to my Dockerfile worked for me.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 5 '17 at 5:58









            MattMatt

            2181210




            2181210

























                0














                Solved:



                Added the following to the Dockerfile:



                RUN mkdir /etc/pki
                RUN mkdir /etc/pki/tls
                RUN mkdir /etc/pki/tls/certs
                RUN apt-get install wget
                RUN wget http://curl.haxx.se/ca/cacert.pem
                RUN mv cacert.pem ca-bundle.crt
                RUN mv ca-bundle.crt /etc/pki/tls/certs





                share|improve this answer




























                  0














                  Solved:



                  Added the following to the Dockerfile:



                  RUN mkdir /etc/pki
                  RUN mkdir /etc/pki/tls
                  RUN mkdir /etc/pki/tls/certs
                  RUN apt-get install wget
                  RUN wget http://curl.haxx.se/ca/cacert.pem
                  RUN mv cacert.pem ca-bundle.crt
                  RUN mv ca-bundle.crt /etc/pki/tls/certs





                  share|improve this answer


























                    0












                    0








                    0







                    Solved:



                    Added the following to the Dockerfile:



                    RUN mkdir /etc/pki
                    RUN mkdir /etc/pki/tls
                    RUN mkdir /etc/pki/tls/certs
                    RUN apt-get install wget
                    RUN wget http://curl.haxx.se/ca/cacert.pem
                    RUN mv cacert.pem ca-bundle.crt
                    RUN mv ca-bundle.crt /etc/pki/tls/certs





                    share|improve this answer













                    Solved:



                    Added the following to the Dockerfile:



                    RUN mkdir /etc/pki
                    RUN mkdir /etc/pki/tls
                    RUN mkdir /etc/pki/tls/certs
                    RUN apt-get install wget
                    RUN wget http://curl.haxx.se/ca/cacert.pem
                    RUN mv cacert.pem ca-bundle.crt
                    RUN mv ca-bundle.crt /etc/pki/tls/certs






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jul 14 '16 at 22:57









                    cidcid

                    1613




                    1613























                        0














                        Fresh installation of below packages solved my problem



                        apt-get -yqq install build-essential libssl-dev libffi-dev python3-pip python3-dev gnupg





                        share|improve this answer




























                          0














                          Fresh installation of below packages solved my problem



                          apt-get -yqq install build-essential libssl-dev libffi-dev python3-pip python3-dev gnupg





                          share|improve this answer


























                            0












                            0








                            0







                            Fresh installation of below packages solved my problem



                            apt-get -yqq install build-essential libssl-dev libffi-dev python3-pip python3-dev gnupg





                            share|improve this answer













                            Fresh installation of below packages solved my problem



                            apt-get -yqq install build-essential libssl-dev libffi-dev python3-pip python3-dev gnupg






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jan 4 at 6:18









                            ShamsShams

                            1011




                            1011






























                                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%2f1101004%2fssl-certificate-verify-failed-error-in-a-docker-container%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

                                RAC Tourist Trophy