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 ms0.migadu.com with LMTPS id aBq/BPGVYGHuagAAgWs5BA (envelope-from ) for ; Fri, 08 Oct 2021 21:03:13 +0200 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 IOMRO/CVYGFYPQAA1q6Kng (envelope-from ) for ; Fri, 08 Oct 2021 19:03:12 +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 72CCF3141E for ; Fri, 8 Oct 2021 21:03:12 +0200 (CEST) Received: from localhost ([::1]:44112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYv9D-0008Dv-FO for larch@yhetil.org; Fri, 08 Oct 2021 15:03:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYv93-0008C7-UC for bug-guix@gnu.org; Fri, 08 Oct 2021 15:03:01 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40325) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYv93-0005FM-NE for bug-guix@gnu.org; Fri, 08 Oct 2021 15:03:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mYv93-0006rX-KM for bug-guix@gnu.org; Fri, 08 Oct 2021 15:03:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#46779: GnuTLS uses the hard-coded /etc/ssl/certs location for TLS certificates Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 08 Oct 2021 19:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46779 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Roel Janssen , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Maxim Cournoyer Received: via spool by 46779-submit@debbugs.gnu.org id=B46779.163371975026343 (code B ref 46779); Fri, 08 Oct 2021 19:03:01 +0000 Received: (at 46779) by debbugs.gnu.org; 8 Oct 2021 19:02:30 +0000 Received: from localhost ([127.0.0.1]:51871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYv8Y-0006qp-6J for submit@debbugs.gnu.org; Fri, 08 Oct 2021 15:02:30 -0400 Received: from world.peace.net ([64.112.178.59]:40586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYv8W-0006qc-Li for 46779@debbugs.gnu.org; Fri, 08 Oct 2021 15:02:28 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYv8Q-0000JW-9g; Fri, 08 Oct 2021 15:02:22 -0400 From: Mark H Weaver In-Reply-To: References: <87im6f9aq2.fsf@gmail.com> <87y2f7td00.fsf@gnu.org> <87o8fen3d0.fsf@netris.org> Date: Fri, 08 Oct 2021 15:00:33 -0400 Message-ID: <87k0in1gur.fsf@netris.org> 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: 46779@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=1633719792; 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=gCbVkErtuDfJ10+B2ZvdflM9kEiUTpNJ/2ydTtvn1DY=; b=dUiJy+urHblKxAgo7jjxMNkbQXi798lWyxKM5FhpL6Sqo260WL8VeNWJwYZGaaK3OAfDQJ kEEmb9vaZBTZdbPtd5UR389L17d2Dxg4F6spyPgV3ePKu6jcD0+rwDJeZ53NwW+SvZPAbp aIalkXQ0+S/px365HxaHW9a+VqSGli5D1hkjfjy48/IkkPixRUPlpz/1FTn3AMjd2QQHA9 o01EK7GV2wvVwtacS8/Gj1ZxZwlHh3Nz1+YO1gTOOOcXYW+qrZvWHBKtaHyDFq/XRP7HZq vbiC+Ch/mGFnKAB9wac0wPFItcu6Jf51BJf/URWmtVGs6VwTF1qXtsgDbQF2Gg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633719792; a=rsa-sha256; cv=none; b=W3fr4DSd8b2b8s0zmBVPceTzgM6zRjidrdeJJAEcL+M6fzl4SZF5MpuRS7etgQEHJLS4dS loDIANO/G1uFRXOQriYjalGZ2psf3ynhN4sntf/zrlmJIlhLfvcOt3RDWP7jF8626E9wYl KKAM4JO6f+/zgdaginLq6h2igI4JqU2BklHLxOYr4q4hrLk+64rXo+JZxVXIGtUZWZf/32 IfCC49TOvLGOd1sGIZYWPtGN5w+yZsxhWcAK5Jz4u0wW0v5gFhnYEMPpnjJQCzrQgG+h3D +nCySvUgaTQjpgc+sCnfZlWwC3wk1LlHgOnJUkbKZl4VOCdjFTk/xIIumWL/Vg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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-Spam-Score: -0.91 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: 72CCF3141E X-Spam-Score: -0.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: uwjOzTCdrFfM Roel Janssen writes: > On Fri, 2021-03-19 at 19:13 -0400, Mark H Weaver wrote: >> Ludovic Court=C3=A8s writes: >>=20 >> > Maxim Cournoyer skribis: >> >=20 >> > > We should patch GnuTLS so that it also honors the SSL_* >> > > environment >> > > variables documented in the Guix manual. >> >=20 >> > Note that (1) the SSL_* variables are originally from OpenSSL, and >> > (2) >> > GnuTLS developers made the conscious decision to not honor any >> > environment variable, leaving it up to application developers to do >> > that. >> >=20 >> > That=E2=80=99s the reason we are in this situation.=C2=A0 See the thre= ad at >> > < >> > https://lists.gnu.org/archive/html/guix-devel/2014-02/msg00237.html >> > >. >>=20 >> That thread is worth reading, but for those who are short on time, I >> want to call attention to a specific point I made: >>=20 >> =C2=A0 However, GnuTLS does not support an environment variable setting, >> so we >> =C2=A0 would have to patch the code (add_system_trust in lib/system.c).= =C2=A0 I >> =C2=A0 strongly considered doing this, but I'm worried about the possible >> =C2=A0 security implications.=C2=A0 For example, consider a setuid progr= am that >> uses >> =C2=A0 GnuTLS and assumes that the person who ran the program will not be >> =C2=A0 capable of changing the trust store that GnuTLS uses.=C2=A0 This >> assumption >> =C2=A0 would be correct for the upstream GnuTLS, but not for ours. >>=20 >> >>=20 > > Would it be an idea to propose the patches, or the idea, for supporting > the SSL_* variables to the GnuTLS developers? Sure, please feel free to discuss it with them. > Or is there a more fundamental reason why GnuTLS does not support > changing certificate stores at run-time? I don't know. It's been many years since I looked at this. Thanks, Mark --=20 Disinformation flourishes because many people care deeply about injustice but very few check the facts. Ask me about .