From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +Aj4JJzJdmCQUQAAgWs5BA (envelope-from ) for ; Wed, 14 Apr 2021 12:53:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id aOUQH5zJdmBlWQAAB5/wlQ (envelope-from ) for ; Wed, 14 Apr 2021 10:53:16 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 020DB2550B for ; Wed, 14 Apr 2021 12:53:16 +0200 (CEST) Received: from localhost ([::1]:39710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWd90-0001MR-D4 for larch@yhetil.org; Wed, 14 Apr 2021 06:53:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWd6t-00086h-0Z for bug-guix@gnu.org; Wed, 14 Apr 2021 06:51:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50374) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWd6s-0000lx-6q for bug-guix@gnu.org; Wed, 14 Apr 2021 06:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWd6s-0001Pn-6A for bug-guix@gnu.org; Wed, 14 Apr 2021 06:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#46829: `guix pull` uses incorrect certificate store Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 14 Apr 2021 10:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46829 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Leo Famulari Received: via spool by 46829-submit@debbugs.gnu.org id=B46829.16183974495419 (code B ref 46829); Wed, 14 Apr 2021 10:51:02 +0000 Received: (at 46829) by debbugs.gnu.org; 14 Apr 2021 10:50:49 +0000 Received: from localhost ([127.0.0.1]:33687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWd6f-0001PL-08 for submit@debbugs.gnu.org; Wed, 14 Apr 2021 06:50:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWd6e-0001PA-2F for 46829@debbugs.gnu.org; Wed, 14 Apr 2021 06:50:48 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40168) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWd6Y-0000bp-8p; Wed, 14 Apr 2021 06:50:42 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=34840 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lWd6X-0005W2-1F; Wed, 14 Apr 2021 06:50:41 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <871rd0ebd5.fsf@cbaines.net> <877dmrtbvn.fsf@gnu.org> <877dm54zk3.fsf@gnu.org> <87zgy2leg9.fsf_-_@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 25 Germinal an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 14 Apr 2021 12:50:39 +0200 In-Reply-To: (Leo Famulari's message of "Tue, 13 Apr 2021 13:44:49 -0400") Message-ID: <87im4pf8cg.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 46829@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618397596; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=RmrcxrnNc2DC4ZpuJPCR9C8crjd5vJjvOgVQZTXOtYY=; b=s8H3vUyfjQsz9J15HXetW9mm08mAqXg8v6lHdXDSdZNWNZuX3DtcVTfd/BDOOdzXw4it8t ah5i9SrdLhMDX/6OV5CFBHreXRF296I6oy+F2x4d2THSAqoPRNhMv7k4vD2rN4aujdGJHl JzQ41HeV2V8pPB4vMhXEbBgoo34poi0NX3sKsRGl6mYt1v2bpX+5ZuSdJCGynAC5XDCT5v idC/s0MBlnxsl2nllYm/CstgyxRuMcNEliSuyNtAb9L8PMyLA/Vi62Pphfd5M6pPD6BAI8 q5wgWxsRAcsol/jKZMMCcKRGfdfbmGPdx6eJA04eVP3z/0lrQiLp+QEag3VGPQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618397596; a=rsa-sha256; cv=none; b=NDJjZRw7oM+miS7YGuNhmH5P1I3ztheSPBwcy4mcVFFkgvae4jhpJhr0kFbHprdnw+fRcq 7loo+EtnpDfpvulmhIHqTxEoR1CT2XbHVrLJ8+Jqm12CBtXLdWLXcfebIQCu6yLYetutS5 3iHCgU5Yv7ODru8A6e0yD0x8fuxy3ZPY/isdvfxUQUfB2gNgBuwmfMsOFpFti8gt39M7jo CNyOXlM6P2pqasL5p/ffIhn6207s8EoLSbotGEZUnARgpTLh8rK5i5Hpe9wqsVBXCCmPiT /EQxUSQXg8Z4LlE4QIk7yR5YDu8tQxVueSKQBEUA/qlGm4qKsK/o53figI2UkQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.94 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 020DB2550B X-Spam-Score: -2.94 X-Migadu-Scanner: scn0.migadu.com X-TUID: 16x8EncKrJIq Hi, Leo Famulari skribis: > On Tue, Apr 13, 2021 at 11:29:58AM +0200, Ludovic Court=C3=A8s wrote: >> So I think the issue is that, when =E2=80=98nss-certs=E2=80=99 is not in= stalled, =E2=80=98guix >> pull=E2=80=99 uses the LE certs, but these certificates expire quite fre= quently, >> whereas if you have =E2=80=98nss-certs=E2=80=99 installed, there=E2=80= =99s =E2=80=9Calways=E2=80=9D a valid >> authentication chain from the roots. > > No, that's incorrect. The certificates in le-certs expired after 5 > years, so it's not frequent. > > These are the root and intermediate certificates for the Let's Encrypt > certificate authority =E2=80=94 they are not the 90 day certificates used= by a > webserver. > > The problem is that we (I) failed to pay attention and let our le-certs > package go stale. OK. 5 years still looks kinda =E2=80=9Cfrequent=E2=80=9D to me. I would t= hink that old software installations (including =E2=80=9Cappliances=E2=80=9D) would live = longer than that, no? You install Guix on a laptop, you leave it in a drawer, and you come a few years later and you can neither access HTTPS web sites nor run =E2=80= =98guix pull=E2=80=99? >> For those who do not have =E2=80=98nss-certs=E2=80=99 installed, a worka= round is to do >> avoid HTTPS: > > The original motivation of le-certs was that nss-certs would not be > required, and that `guix pull` would always work. I think we should > still try to achieve this. OK. >> We could also add a =E2=80=98--no-check-certificates=E2=80=99 option to = =E2=80=98guix pull=E2=80=99. > > I think we should avoid adding "use insecure connection" options. Even > if the code itself is signed. =E2=80=9CInsecure=E2=80=9D is a strong word: it still prevents eavesdroppin= g, which is the only property that matters in the presence of authenticated channels. > I'm going to figure out how to subscribe to Let's Encrypt announcements > and I'll report back with ideas about how to avoid a repeat of the > problem. Yes, that=E2=80=99s the better option. Thank you! Ludo=E2=80=99.