Set company certificate as Trusted

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












My company gave me a file company_CA.crt that I need to use to access one of our customers website.



When I tried to add it on macOS, all I had to do was to click on the file, and then after imported, set it as "Always Trust".



I would like to do the same in Ubuntu, so I followed the next steps:



  • Copied the CRT file to usr/local/share/ca-certificates/my_company

  • Run sudo update-ca-certificates

But I cannot still open the website. Did I miss a step?










share|improve this question

























    up vote
    1
    down vote

    favorite












    My company gave me a file company_CA.crt that I need to use to access one of our customers website.



    When I tried to add it on macOS, all I had to do was to click on the file, and then after imported, set it as "Always Trust".



    I would like to do the same in Ubuntu, so I followed the next steps:



    • Copied the CRT file to usr/local/share/ca-certificates/my_company

    • Run sudo update-ca-certificates

    But I cannot still open the website. Did I miss a step?










    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      My company gave me a file company_CA.crt that I need to use to access one of our customers website.



      When I tried to add it on macOS, all I had to do was to click on the file, and then after imported, set it as "Always Trust".



      I would like to do the same in Ubuntu, so I followed the next steps:



      • Copied the CRT file to usr/local/share/ca-certificates/my_company

      • Run sudo update-ca-certificates

      But I cannot still open the website. Did I miss a step?










      share|improve this question













      My company gave me a file company_CA.crt that I need to use to access one of our customers website.



      When I tried to add it on macOS, all I had to do was to click on the file, and then after imported, set it as "Always Trust".



      I would like to do the same in Ubuntu, so I followed the next steps:



      • Copied the CRT file to usr/local/share/ca-certificates/my_company

      • Run sudo update-ca-certificates

      But I cannot still open the website. Did I miss a step?







      ssl certificates






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 12 at 8:49









      Enrique Moreno Tent

      1,08841740




      1,08841740




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote














          • Check if the CA root certificate for your customer_web_site is known or not in your system.



            $ curl -I https://customer_web_site
            curl: (77) Problem with the SSL CA cert (path? access rights?)


          The CA certificate for customer_web_site server is (indeed) NOT known in the system.



          File company_CA.crt must be in CRT format. (seems to be in this case)
          If it is in PEM format, then you have to conver it (openssl x509 -in xxxx.pem -inform PEM -out xxxx.crt



          • Install the CA file in Ubuntu

          Copy the company_CA.crt file to new directory extra in /usr/share/ca-certificates



          Let ubuntu pick-up that new CA certificate and install it in the Linux system



          sudo dpkg-reconfigure ca-certificates


          A menu will appear. Check option "ask" for Prompt for each new CA certificate. You will see your new certificate.



          extra/company_CA.crt



          Press space, to select that new CA certificate file and select OK.



          uAt the end, you should see something like this:



          1 added, 0 removed; done.
          Running hooks in /etc/ca-certificates/update.d...



          Check if curl works without specifying the CA certificate file



          $ curl -I https://customer_web_site
          HTTP/1.1 200 OK
          Date: Thu, 06 Sep 2018 18:08:26 GMT
          Server: Apache/2.4.18 (Ubuntu)
          Last-Modified: Fri, 27 Jul 2018 12:09:02 GMT
          ETag: "2c39-571f9fa3671da"
          Accept-Ranges: bytes
          Content-Length: 11321
          Vary: Accept-Encoding
          Content-Type: text/html


          It works.



          If you want to know more about Self Signed Certificates and how to use them, then check my github.






          share|improve this answer


















          • 1




            Welcome to Ask Ubuntu! ;-) Could you please add a little more detail? What exactly does the OP have to do? How? Do you have any additional Tips or Tricks? Please edit your post to add information before the system deletes this because of low quality... :-(
            – Fabby
            Sep 5 at 15:46










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1024300%2fset-company-certificate-as-trusted%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote














          • Check if the CA root certificate for your customer_web_site is known or not in your system.



            $ curl -I https://customer_web_site
            curl: (77) Problem with the SSL CA cert (path? access rights?)


          The CA certificate for customer_web_site server is (indeed) NOT known in the system.



          File company_CA.crt must be in CRT format. (seems to be in this case)
          If it is in PEM format, then you have to conver it (openssl x509 -in xxxx.pem -inform PEM -out xxxx.crt



          • Install the CA file in Ubuntu

          Copy the company_CA.crt file to new directory extra in /usr/share/ca-certificates



          Let ubuntu pick-up that new CA certificate and install it in the Linux system



          sudo dpkg-reconfigure ca-certificates


          A menu will appear. Check option "ask" for Prompt for each new CA certificate. You will see your new certificate.



          extra/company_CA.crt



          Press space, to select that new CA certificate file and select OK.



          uAt the end, you should see something like this:



          1 added, 0 removed; done.
          Running hooks in /etc/ca-certificates/update.d...



          Check if curl works without specifying the CA certificate file



          $ curl -I https://customer_web_site
          HTTP/1.1 200 OK
          Date: Thu, 06 Sep 2018 18:08:26 GMT
          Server: Apache/2.4.18 (Ubuntu)
          Last-Modified: Fri, 27 Jul 2018 12:09:02 GMT
          ETag: "2c39-571f9fa3671da"
          Accept-Ranges: bytes
          Content-Length: 11321
          Vary: Accept-Encoding
          Content-Type: text/html


          It works.



          If you want to know more about Self Signed Certificates and how to use them, then check my github.






          share|improve this answer


















          • 1




            Welcome to Ask Ubuntu! ;-) Could you please add a little more detail? What exactly does the OP have to do? How? Do you have any additional Tips or Tricks? Please edit your post to add information before the system deletes this because of low quality... :-(
            – Fabby
            Sep 5 at 15:46














          up vote
          0
          down vote














          • Check if the CA root certificate for your customer_web_site is known or not in your system.



            $ curl -I https://customer_web_site
            curl: (77) Problem with the SSL CA cert (path? access rights?)


          The CA certificate for customer_web_site server is (indeed) NOT known in the system.



          File company_CA.crt must be in CRT format. (seems to be in this case)
          If it is in PEM format, then you have to conver it (openssl x509 -in xxxx.pem -inform PEM -out xxxx.crt



          • Install the CA file in Ubuntu

          Copy the company_CA.crt file to new directory extra in /usr/share/ca-certificates



          Let ubuntu pick-up that new CA certificate and install it in the Linux system



          sudo dpkg-reconfigure ca-certificates


          A menu will appear. Check option "ask" for Prompt for each new CA certificate. You will see your new certificate.



          extra/company_CA.crt



          Press space, to select that new CA certificate file and select OK.



          uAt the end, you should see something like this:



          1 added, 0 removed; done.
          Running hooks in /etc/ca-certificates/update.d...



          Check if curl works without specifying the CA certificate file



          $ curl -I https://customer_web_site
          HTTP/1.1 200 OK
          Date: Thu, 06 Sep 2018 18:08:26 GMT
          Server: Apache/2.4.18 (Ubuntu)
          Last-Modified: Fri, 27 Jul 2018 12:09:02 GMT
          ETag: "2c39-571f9fa3671da"
          Accept-Ranges: bytes
          Content-Length: 11321
          Vary: Accept-Encoding
          Content-Type: text/html


          It works.



          If you want to know more about Self Signed Certificates and how to use them, then check my github.






          share|improve this answer


















          • 1




            Welcome to Ask Ubuntu! ;-) Could you please add a little more detail? What exactly does the OP have to do? How? Do you have any additional Tips or Tricks? Please edit your post to add information before the system deletes this because of low quality... :-(
            – Fabby
            Sep 5 at 15:46












          up vote
          0
          down vote










          up vote
          0
          down vote










          • Check if the CA root certificate for your customer_web_site is known or not in your system.



            $ curl -I https://customer_web_site
            curl: (77) Problem with the SSL CA cert (path? access rights?)


          The CA certificate for customer_web_site server is (indeed) NOT known in the system.



          File company_CA.crt must be in CRT format. (seems to be in this case)
          If it is in PEM format, then you have to conver it (openssl x509 -in xxxx.pem -inform PEM -out xxxx.crt



          • Install the CA file in Ubuntu

          Copy the company_CA.crt file to new directory extra in /usr/share/ca-certificates



          Let ubuntu pick-up that new CA certificate and install it in the Linux system



          sudo dpkg-reconfigure ca-certificates


          A menu will appear. Check option "ask" for Prompt for each new CA certificate. You will see your new certificate.



          extra/company_CA.crt



          Press space, to select that new CA certificate file and select OK.



          uAt the end, you should see something like this:



          1 added, 0 removed; done.
          Running hooks in /etc/ca-certificates/update.d...



          Check if curl works without specifying the CA certificate file



          $ curl -I https://customer_web_site
          HTTP/1.1 200 OK
          Date: Thu, 06 Sep 2018 18:08:26 GMT
          Server: Apache/2.4.18 (Ubuntu)
          Last-Modified: Fri, 27 Jul 2018 12:09:02 GMT
          ETag: "2c39-571f9fa3671da"
          Accept-Ranges: bytes
          Content-Length: 11321
          Vary: Accept-Encoding
          Content-Type: text/html


          It works.



          If you want to know more about Self Signed Certificates and how to use them, then check my github.






          share|improve this answer















          • Check if the CA root certificate for your customer_web_site is known or not in your system.



            $ curl -I https://customer_web_site
            curl: (77) Problem with the SSL CA cert (path? access rights?)


          The CA certificate for customer_web_site server is (indeed) NOT known in the system.



          File company_CA.crt must be in CRT format. (seems to be in this case)
          If it is in PEM format, then you have to conver it (openssl x509 -in xxxx.pem -inform PEM -out xxxx.crt



          • Install the CA file in Ubuntu

          Copy the company_CA.crt file to new directory extra in /usr/share/ca-certificates



          Let ubuntu pick-up that new CA certificate and install it in the Linux system



          sudo dpkg-reconfigure ca-certificates


          A menu will appear. Check option "ask" for Prompt for each new CA certificate. You will see your new certificate.



          extra/company_CA.crt



          Press space, to select that new CA certificate file and select OK.



          uAt the end, you should see something like this:



          1 added, 0 removed; done.
          Running hooks in /etc/ca-certificates/update.d...



          Check if curl works without specifying the CA certificate file



          $ curl -I https://customer_web_site
          HTTP/1.1 200 OK
          Date: Thu, 06 Sep 2018 18:08:26 GMT
          Server: Apache/2.4.18 (Ubuntu)
          Last-Modified: Fri, 27 Jul 2018 12:09:02 GMT
          ETag: "2c39-571f9fa3671da"
          Accept-Ranges: bytes
          Content-Length: 11321
          Vary: Accept-Encoding
          Content-Type: text/html


          It works.



          If you want to know more about Self Signed Certificates and how to use them, then check my github.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Sep 6 at 18:30

























          answered Sep 5 at 15:03









          Rob Lassche

          1112




          1112







          • 1




            Welcome to Ask Ubuntu! ;-) Could you please add a little more detail? What exactly does the OP have to do? How? Do you have any additional Tips or Tricks? Please edit your post to add information before the system deletes this because of low quality... :-(
            – Fabby
            Sep 5 at 15:46












          • 1




            Welcome to Ask Ubuntu! ;-) Could you please add a little more detail? What exactly does the OP have to do? How? Do you have any additional Tips or Tricks? Please edit your post to add information before the system deletes this because of low quality... :-(
            – Fabby
            Sep 5 at 15:46







          1




          1




          Welcome to Ask Ubuntu! ;-) Could you please add a little more detail? What exactly does the OP have to do? How? Do you have any additional Tips or Tricks? Please edit your post to add information before the system deletes this because of low quality... :-(
          – Fabby
          Sep 5 at 15:46




          Welcome to Ask Ubuntu! ;-) Could you please add a little more detail? What exactly does the OP have to do? How? Do you have any additional Tips or Tricks? Please edit your post to add information before the system deletes this because of low quality... :-(
          – Fabby
          Sep 5 at 15:46

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1024300%2fset-company-certificate-as-trusted%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491