Ubuntu Apt 1.6.6 with client cert and HTTPS












0















After upgrading to Ubuntu 18.04, the connection to my repository using https and client cert authentication is no longer working.
My config:



Acquire::https::example.com {
Verify-Peer "true";
Verify-Host "true";

CaInfo "/opt/CA.crt";

SslCert "/opt/user.crt";
SslKey "/opt/user.key";
};


_apt is owner of the file, rights on the key-file is 600



If I a strace -f apt-get update, I see that apt is not trying to open de SSLcert/SSLkey files.



Everything with apt versions < 1.5. These versions had a separate apt-transport-https packege



On a system with apt version 1.4.8, I do see that the SSLCert/SSLkey files are opened.



Other difference:
In apt 1.6.6:



cd /usr/lib/apt/methods:
-rwxr-xr-x 1 root root 170152 jan 25 12:41 http
lrwxrwxrwx 1 root root 4 jan 30 14:04 https -> http


In apt 1.4.8:



cd /usr/lib/apt/methods:
-rwxr-xr-x 1 root root 112808 Sep 13 2017 http
-rwxr-xr-x 1 root root 92328 Jan 18 11:42 https


What is the correct config to use client cert in apt 1.6.6?










share|improve this question







New contributor




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

























    0















    After upgrading to Ubuntu 18.04, the connection to my repository using https and client cert authentication is no longer working.
    My config:



    Acquire::https::example.com {
    Verify-Peer "true";
    Verify-Host "true";

    CaInfo "/opt/CA.crt";

    SslCert "/opt/user.crt";
    SslKey "/opt/user.key";
    };


    _apt is owner of the file, rights on the key-file is 600



    If I a strace -f apt-get update, I see that apt is not trying to open de SSLcert/SSLkey files.



    Everything with apt versions < 1.5. These versions had a separate apt-transport-https packege



    On a system with apt version 1.4.8, I do see that the SSLCert/SSLkey files are opened.



    Other difference:
    In apt 1.6.6:



    cd /usr/lib/apt/methods:
    -rwxr-xr-x 1 root root 170152 jan 25 12:41 http
    lrwxrwxrwx 1 root root 4 jan 30 14:04 https -> http


    In apt 1.4.8:



    cd /usr/lib/apt/methods:
    -rwxr-xr-x 1 root root 112808 Sep 13 2017 http
    -rwxr-xr-x 1 root root 92328 Jan 18 11:42 https


    What is the correct config to use client cert in apt 1.6.6?










    share|improve this question







    New contributor




    Jeroen OM 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








      After upgrading to Ubuntu 18.04, the connection to my repository using https and client cert authentication is no longer working.
      My config:



      Acquire::https::example.com {
      Verify-Peer "true";
      Verify-Host "true";

      CaInfo "/opt/CA.crt";

      SslCert "/opt/user.crt";
      SslKey "/opt/user.key";
      };


      _apt is owner of the file, rights on the key-file is 600



      If I a strace -f apt-get update, I see that apt is not trying to open de SSLcert/SSLkey files.



      Everything with apt versions < 1.5. These versions had a separate apt-transport-https packege



      On a system with apt version 1.4.8, I do see that the SSLCert/SSLkey files are opened.



      Other difference:
      In apt 1.6.6:



      cd /usr/lib/apt/methods:
      -rwxr-xr-x 1 root root 170152 jan 25 12:41 http
      lrwxrwxrwx 1 root root 4 jan 30 14:04 https -> http


      In apt 1.4.8:



      cd /usr/lib/apt/methods:
      -rwxr-xr-x 1 root root 112808 Sep 13 2017 http
      -rwxr-xr-x 1 root root 92328 Jan 18 11:42 https


      What is the correct config to use client cert in apt 1.6.6?










      share|improve this question







      New contributor




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












      After upgrading to Ubuntu 18.04, the connection to my repository using https and client cert authentication is no longer working.
      My config:



      Acquire::https::example.com {
      Verify-Peer "true";
      Verify-Host "true";

      CaInfo "/opt/CA.crt";

      SslCert "/opt/user.crt";
      SslKey "/opt/user.key";
      };


      _apt is owner of the file, rights on the key-file is 600



      If I a strace -f apt-get update, I see that apt is not trying to open de SSLcert/SSLkey files.



      Everything with apt versions < 1.5. These versions had a separate apt-transport-https packege



      On a system with apt version 1.4.8, I do see that the SSLCert/SSLkey files are opened.



      Other difference:
      In apt 1.6.6:



      cd /usr/lib/apt/methods:
      -rwxr-xr-x 1 root root 170152 jan 25 12:41 http
      lrwxrwxrwx 1 root root 4 jan 30 14:04 https -> http


      In apt 1.4.8:



      cd /usr/lib/apt/methods:
      -rwxr-xr-x 1 root root 112808 Sep 13 2017 http
      -rwxr-xr-x 1 root root 92328 Jan 18 11:42 https


      What is the correct config to use client cert in apt 1.6.6?







      apt repository certificates client






      share|improve this question







      New contributor




      Jeroen OM 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 question







      New contributor




      Jeroen OM 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 question




      share|improve this question






      New contributor




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









      asked 2 days ago









      Jeroen OMJeroen OM

      11




      11




      New contributor




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





      New contributor





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






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






















          0






          active

          oldest

          votes











          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',
          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
          });


          }
          });






          Jeroen OM is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1114150%2fubuntu-apt-1-6-6-with-client-cert-and-https%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








          Jeroen OM is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Jeroen OM is a new contributor. Be nice, and check out our Code of Conduct.













          Jeroen OM is a new contributor. Be nice, and check out our Code of Conduct.












          Jeroen OM is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Ask Ubuntu!


          • 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%2faskubuntu.com%2fquestions%2f1114150%2fubuntu-apt-1-6-6-with-client-cert-and-https%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

          數位音樂下載

          When can things happen in Etherscan, such as the picture below?

          格利澤436b