From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yF3oKHqZXGFG0QAAgWs5BA (envelope-from ) for ; Tue, 05 Oct 2021 20:29:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iHmOJHqZXGHKHAAAB5/wlQ (envelope-from ) for ; Tue, 05 Oct 2021 18:29:14 +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 1079526DB2 for ; Tue, 5 Oct 2021 20:29:14 +0200 (CEST) Received: from localhost ([::1]:60634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXpBh-00074I-2q for larch@yhetil.org; Tue, 05 Oct 2021 14:29:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXoSb-0008A5-F1 for help-guix@gnu.org; Tue, 05 Oct 2021 13:42:38 -0400 Received: from mail-qv1-xf33.google.com ([2607:f8b0:4864:20::f33]:40881) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXoSZ-0007UR-Je for help-guix@gnu.org; Tue, 05 Oct 2021 13:42:37 -0400 Received: by mail-qv1-xf33.google.com with SMTP id z15so157964qvj.7 for ; Tue, 05 Oct 2021 10:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=uq7osWDDS+A9cAiuqpLM4Hs1WNnBs219pQ0ZPMA+Lo0=; b=h5RLgf5bxQgOH7hmmZ7w4oQpeeMOCMUx6LQfe1F8NdvvdSzlQQHN2EHXk5gGpKtLhL cy6QzeZ15VOxYUpd528jguBC7JMCeN4na6CEXrviCUL+3mE38AsS0fCX9ZQecFGTlbXr oPQJOawbGeRTxUwQV5G2mZAcDTKDcLgPBaFn9o8Xck3P+hTl6c8jiNiE8yUcb9g2su/k WGU9NaGUa3Lj+uI5FNKUo6zGNLwvUV6+P2JAv75D0qVwMtkU+E8n+WBe7fNVuNWk5moa PMzvsI7qLA1/0kdhPnmHjiHOAHM4hltmgZQozDYxJJaRLVoMOffpapO4lGPveRjnW66c sHag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=uq7osWDDS+A9cAiuqpLM4Hs1WNnBs219pQ0ZPMA+Lo0=; b=xxqs/v4/oR4X9/lOeKch7z3bhvXElC+Oi0226RI3TK8vruZeECA6pBSDn4KGR4GjA6 diE6zz7XCCGfLdje50rFPNMoGn4D2yw5p6w6K+duuiFznoHIgF1up5wJN2t0gA7xk7W0 5ok+pwKM0crxhW3znchb1h6M3kNncfHRqBiEIg23toAHfGmiEOOp13ZDvbYS2RXNeRqf e7ld0LR3wsWTI3eDRKEi2/Fm0EiSflfAgzwtbxEWnqF8jr2lz+juwMjPtVCTGbsFRduF vsuHptMJVgCGmcsrXKsh4XQMu2/qpe+7tR95JDUBQ24XetZMWZ+TG/uZaWaQw9rObbGK Wvjg== X-Gm-Message-State: AOAM5317f2qfhucDBBO1rAL7wb7B+BRDtV35s2Cy+LYSAothQz5gVKMR bHkdfToc+1JEaZIpW2exEPks2L7l/Pg= X-Google-Smtp-Source: ABdhPJzxdmiD9xHkWWQpzMTq7Aqt4Wcj7LjhpWzFymrIQf5Duqb+C8c/m+jb3xo49SAEa6jCBci0Qg== X-Received: by 2002:a0c:ed21:: with SMTP id u1mr718225qvq.38.1633455754633; Tue, 05 Oct 2021 10:42:34 -0700 (PDT) Received: from hurd (dsl-10-146-244.b2b2c.ca. [72.10.146.244]) by smtp.gmail.com with ESMTPSA id d9sm9749329qko.111.2021.10.05.10.42.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 10:42:33 -0700 (PDT) From: Maxim Cournoyer To: help-guix@gnu.org Subject: Re: Certificates in pure and containerized environments References: <20211003164510.ebwlm6u24a2bgao4@wzguix> Date: Tue, 05 Oct 2021 13:42:32 -0400 In-Reply-To: <20211003164510.ebwlm6u24a2bgao4@wzguix> ("Wiktor =?utf-8?Q?=C5=BBelazny=22's?= message of "Sun, 3 Oct 2021 18:45:10 +0200") Message-ID: <87ilyb4bcn.fsf@gmail.com> 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 Received-SPF: pass client-ip=2607:f8b0:4864:20::f33; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf33.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: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633458554; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=uq7osWDDS+A9cAiuqpLM4Hs1WNnBs219pQ0ZPMA+Lo0=; b=c9Q5QsqZPG4SK/K56EXjPofHeaKKe/Hq7KT9mGeFecYq6dEpGm6KwaLjL9hJ2COVdS6OWX HncOMkTDzJaNwisntB6q42A4vBq5QCvbLpFVotshNM8RI7tGLhUFLKMSctm1nvGGBLiXur evNOzLbIzF602o3j9RNMcFOJt0MuEbTO8rLxzlVlny51PkyAgflZr8RyiJftp1mx3A0fvA vMIRkGi3a+sK7mEuDnMlKo94MM9v1VxLlaMhxP51Tn9I2w80DKf1zBZB19etus7IGUF7/F 9LB/b+8GXBOVnAugQZDDi707Qp7HkMUkG3oXJbef8Z+rNywLcm6aPw6603CArg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633458554; a=rsa-sha256; cv=none; b=nKprSz5x2BDDZYcOjaJeCIy2xXtMsTmkrNTxnqlGXmbKoOa85c9Qudb9EGiLvPm/9roLxX G5Sk309hR8MQPhYyTsFgBZgoqSz/zhaokXk/7e1S4J6JrJw62uUVYzHOW89XdaGcw1WF4w kz18GX9AvHrhO0FjQoClpGWTDAWu45BkgfXRIe7HZ22H2OIrW/1Sa2kwki8RUg1K1YKd0G YnGYEdBL1N6YIlEDqakLKTP/+DGny9ZfPGhAQX1lGEwp5EHbwCnjFPCouVYqfoBMjYs7oO 7yPCqY+XYNVd71DEpBwvJb4DCyrawTZxM2+4L96slNpq5k8K5eebRTILBd0sRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=h5RLgf5b; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=h5RLgf5b; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 1079526DB2 X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: pCGCd65pa0qJ Hi, Wiktor =C5=BBelazny writes: > On Thu, Sep 30, 2021 at 12:08:53PM +0200, Konrad Hinsen wrote: > >> guix environment --pure \ >> --ad-hoc python nss-certs -- \ >> python3 -c 'import urllib.request; print(urllib.request.urlop= en("http://wwwbis.sidc.be/DATA/uset/Wlight/2003/11/UPH20031109112104.FTS"))' >> >> but this doesn't work - same error as initially. > > Hi Konrad, > > For some reason, it works for me with > > --ad-hoc python nss-certs guix -- \ > > . I=E2=80=99m neither sure if this is going to work on all machines (it w= orks > when isolated with > > guix environment -C -N > > , so there=E2=80=99s some hope), nor whether this solution is acceptable = to you. > Perhaps, it=E2=80=99s abusing Guix. Maybe somebody more knowledgeable will > comment on this. The key thing here is whether the certs are required by OpenSSL vs GnuTLS. The former honors SSL_CERT_DIR, while the later does not (I opened an issue because I think it'd be nice to have them both honor it the same here: [0]). GnuTLS on Guix gets its certifications from the hard coded location /etc/ssl/certs/. This need to be bound in the container; on a Guix System, it's also not enough to simply pass /etc/ssl/certs/ as is, as these are symlinks to the store; you must also expose the store or bind the etc/ssl/certs/ directory of the nss-certs package directly. I hope that helps! Maxim [0] https://issues.guix.gnu.org/46779