From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6JMpCuMCOGBAXQAA0tVLHw (envelope-from ) for ; Thu, 25 Feb 2021 20:04:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2GMEBuMCOGACMgAA1q6Kng (envelope-from ) for ; Thu, 25 Feb 2021 20:04:51 +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 6B70020367 for ; Thu, 25 Feb 2021 21:04:46 +0100 (CET) Received: from localhost ([::1]:47328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFMsO-0007Mp-6P for larch@yhetil.org; Thu, 25 Feb 2021 15:04:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFMri-0007Ko-8a for bug-guix@gnu.org; Thu, 25 Feb 2021 15:04:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56109) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lFMri-0003vx-1H for bug-guix@gnu.org; Thu, 25 Feb 2021 15:04:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lFMrh-0005Iy-T3 for bug-guix@gnu.org; Thu, 25 Feb 2021 15:04:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46779: GnuTLS uses the hard-coded /etc/ssl/certs location for TLS certificates Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 25 Feb 2021 20:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46779 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 46779@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.161428339720331 (code B ref -1); Thu, 25 Feb 2021 20:04:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Feb 2021 20:03:17 +0000 Received: from localhost ([127.0.0.1]:39422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFMqy-0005Hq-7S for submit@debbugs.gnu.org; Thu, 25 Feb 2021 15:03:17 -0500 Received: from lists.gnu.org ([209.51.188.17]:47622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFMqt-0005Hf-JY for submit@debbugs.gnu.org; Thu, 25 Feb 2021 15:03:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFMqr-0006l9-Ep for bug-guix@gnu.org; Thu, 25 Feb 2021 15:03:11 -0500 Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]:41330) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lFMqm-0003Ww-Kl for bug-guix@gnu.org; Thu, 25 Feb 2021 15:03:09 -0500 Received: by mail-qv1-xf34.google.com with SMTP id t1so2399454qvj.8 for ; Thu, 25 Feb 2021 12:03:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=o4cLOgSeiiQvFPzwCgDtA6ua743sv22x9+SRjzHfEX4=; b=XZSmZDNUR2PJrC9wXFo6HhFk413WzW8mgdshWsLGB8H/ZDWGYQe2jCYP1cc2tTQeGP 7wctLgiCkyyUMzifvS9KbX/vg48ofTbVzzLvuUPuloNzhW/DYo4/1AUVWFNXLQ7yNqbg 05nGbOKkr2sE4t3KpqNYMZsvMZRVPgwuMRctpF71rri+Kayt7F//v8gzuIUrmXFJ0uJe FeScd64zsBkyFluTJTsJ19sSSP1Shu/xgtKCyBJEmAsDSTsbggv9R0WwytRLghAy/nP2 aA4YWUHYUo5TRbbEmtdLABrQ/PNSpRQgm6RiQPjH8EppB5YSxQQ7csXi9Ros4+9gCNNx Atig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=o4cLOgSeiiQvFPzwCgDtA6ua743sv22x9+SRjzHfEX4=; b=Ak8FWKUNcBK1ZNmRSjQ3A6gZDjXDB5By1qOhnNWokh2ORaKuMi6RQz8lVWwkOgSB8z pDFzxDUFzdgM+wV05Ocmvt1Zp2pRzVOMPXkjuzNM6HdXY2740IqA2FeVF13dx7h8ZDsT mm535WTQJrUNxknA36xWLK4LTq0cjTWN0i0lHGTECkbjnOMaq8TGXTmopj8ZdWx6P1Q1 X0STKMPoSP4paDzQLtnCDEM+aaDClNBdmrTOmBKNbmsb1jJQwzFrcouosC8W42opjZZ6 +6fbuBuFCVpJ+zyrbhWtnIUp1ejqNYpnQcs094n/3X9MfcT5m/52zpRaR18pzwu7PXV4 7v2w== X-Gm-Message-State: AOAM532ULbhs1K8rJVJktrltMzbJYhWGagXvAsTOcCtIixIEwIMNMlDk WejqkfjlGEUq5AHNdgRbYFoT2b41lPjTaw== X-Google-Smtp-Source: ABdhPJwqOdqC4mKqvFKu8p6UlxmvLSO8/iNwhOS47GyiElfKjF/7/D7+kiVBPXrP8HaEHYyq+r2RXA== X-Received: by 2002:a05:6214:118d:: with SMTP id t13mr4442062qvv.33.1614283383129; Thu, 25 Feb 2021 12:03:03 -0800 (PST) Received: from hurd (dsl-10-130-102.b2b2c.ca. [72.10.130.102]) by smtp.gmail.com with ESMTPSA id q204sm4786276qka.84.2021.02.25.12.03.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Feb 2021 12:03:02 -0800 (PST) From: Maxim Cournoyer Date: Thu, 25 Feb 2021 15:03:01 -0500 Message-ID: <87im6f9aq2.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::f34; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf34.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.27 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=XZSmZDNU; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 6B70020367 X-Spam-Score: -1.27 X-Migadu-Scanner: scn0.migadu.com X-TUID: oAHYk5BVH0Zs Hello, Consider this: $ guix environment --container --network -E SSL --expose=$SSL_CERT_FILE --expose=$SSL_CERT_DIR --ad-hoc wget -- wget https://gnu.org It works on a Guix System, but fails on a foreign distribution, even in a profile where nss-certs were installed and with the above SSL environment value properly set. This is because GnuTLS, which wget uses, looks up the certificates under the /etc/ssl/certs hard-coded location. On Guix System, the SSL_CERT_FILE is set to /etc/ssl/certs/ca-certificates.crt, which explains why it works there. We should patch GnuTLS so that it also honors the SSL_* environment variables documented in the Guix manual. Maxim