From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id uA2mB6YyuGW3DgEAqHPOHw:P1 (envelope-from ) for ; Tue, 30 Jan 2024 00:20:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id uA2mB6YyuGW3DgEAqHPOHw (envelope-from ) for ; Tue, 30 Jan 2024 00:20:06 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lassieur.org header.s=fm2 header.b=EmApwDHs; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=Zx1DFqfQ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706570406; 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: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: dkim-signature; bh=E8t58qC76zSehW1fu1F9ShraKP9B9DNbAR7muAp97Nw=; b=oB7cT97WRCPYk2RpboeQq+ZEuN+LT5fJWNTJkyyjtpIdxpy4KDuBdJ56sI7Pev1yxPdmxG BjA1hIzZ3T6s3+/D3uZ+tlmNVwu9GHL64cxsUyF4EffPh+NaS28fum1sVllg9xygsjwvGM iDGZ2dBMCk3qKBNNKD1fUX74vlRQl+mg7XTUSudgqAHVs5xZwUsDK2pPyxDVaODF9uOxCu rsvq/WIdY8KN1gBcDyI7pA0ByepltsMq21a0sBlBzrJL1fuG64bVhPXirlRaOJUz9KEdo1 iDzRtwhuagvUSna5FzpLiDkPfEelvdZAleNO0fPLblVLie9/ozDrUExw5VrS3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lassieur.org header.s=fm2 header.b=EmApwDHs; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=Zx1DFqfQ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706570406; a=rsa-sha256; cv=none; b=A0MiwY2IScL0s4Te6DQyl83xriTzyDDgcO6aVmtjQ2bkzdRYu1etX9TwRdZqsY38HVtw0F jjizI4VjYhtwYBdYUQ9OKPBSBf5y+WASk++2OOhAprjlhI3McPJ4NvRdwZG0veloPyweZP 0oTW38xmdYyDEcmIvOXVz1UpRZ2Z+zNKUn/j4Sy5APUWwTGHcY5+AgRCztdNhdokbkZ2Wt 8MvU7byTpjwjhKKm/+oVCj9uhN11cNsfZzUoTswkWutq2Kf4EGqVy3gQTGKRChe0E5AyNM zu+uDkx82gWeM5QkKLGZpjAMJllygFYhK873G0S8dEfbDnMpRNWIMoX5K0M4PQ== 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 457F635FFF for ; Tue, 30 Jan 2024 00:20:05 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUauz-00022V-Ao; Mon, 29 Jan 2024 18:19:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rUauw-000229-D2 for bug-guix@gnu.org; Mon, 29 Jan 2024 18:19:54 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rUauv-0002pT-FC for bug-guix@gnu.org; Mon, 29 Jan 2024 18:19:54 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rUav3-0000po-SY for bug-guix@gnu.org; Mon, 29 Jan 2024 18:20:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46961: Nginx and certbot cervices don't play well togther Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 29 Jan 2024 23:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46961 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Carlo Zancanaro Cc: 46961@debbugs.gnu.org Received: via spool by 46961-submit@debbugs.gnu.org id=B46961.17065703683151 (code B ref 46961); Mon, 29 Jan 2024 23:20:01 +0000 Received: (at 46961) by debbugs.gnu.org; 29 Jan 2024 23:19:28 +0000 Received: from localhost ([127.0.0.1]:33740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUauW-0000ol-3F for submit@debbugs.gnu.org; Mon, 29 Jan 2024 18:19:28 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:59991) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUauT-0000oW-3x for 46961@debbugs.gnu.org; Mon, 29 Jan 2024 18:19:26 -0500 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id 2FDA55C0152; Mon, 29 Jan 2024 18:19:11 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Mon, 29 Jan 2024 18:19:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lassieur.org; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1706570351; x=1706656751; bh=E8t58qC76z SehW1fu1F9ShraKP9B9DNbAR7muAp97Nw=; b=EmApwDHsGrUuXzSqFzKjUFbcf2 DjJN5LTUqAT8MUPoX0jVgwzylPQxdOiCfpNaKG+M+4dB25dulMPIoZnY/zhMXPpO Cnz4wrZ1IT/hHng24uAychhqh1I/tYEoFBaKIzlGjGHWpHop0depH8BGn8C4QcqR mjSUhV5PFn4b4rFdggcL7pOItyy//11Q7eK2gOcB1okXwm9JO/HqcNYj98p87rF/ F7s+LvqLmRmW+h7jAlITlWrbc0Lh78YbFEEyPa4WFx1Wf95EkvilWtHHALhsJPLK N8YJScBepoUhiMKDNSDWG5zx08oryHE+8Go06xvq/bK9XuCBoPWiDWZrRfeA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1706570351; x=1706656751; bh=E8t58qC76zSehW1fu1F9ShraKP9B 9DNbAR7muAp97Nw=; b=Zx1DFqfQLgvCTBOofCPbhvyQeexMYxoky0iBESY8wGYo 0PCCFqeOujtSFja/z5ov1Gzhl9tFHJqj9KN2Ujm1PKP4/91RfeCx9oBys3JFXbiI ColQxuAtH4pLeTrcJuk8wllSHmSNY9j5g6jiDUx0KKz1NRVEkCPTZImceeKLDwaf E/X++8t56piGMqpW7qbHyGsQkGIGsNwW60OappgHW8tN3f2pHd3Kp/04dsv+KwLT sYWp2gGOVRKA5Zc3uCZNcRlo1SSbilMAZ5epTKJLBSk6y9raaqbevC1Hy403ytem Ck3rGW454cbfw0iK4PrnRQs6W38agA4WqvBEW0MHGw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfedthedgtdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffffkfgggtgesthdtredttderjeenucfhrhhomhepvehlrohm vghnthcunfgrshhsihgvuhhruceotghlvghmvghntheslhgrshhsihgvuhhrrdhorhhgqe enucggtffrrghtthgvrhhnpeevjeeljefhledthedukeejhfekuefglefgtddvudetveel jeekudevtdfhtdfgffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegtlhgvmhgvnhhtsehlrghsshhivghurhdrohhrgh X-ME-Proxy: Feedback-ID: i4c21472a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 29 Jan 2024 18:19:09 -0500 (EST) From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur In-Reply-To: <87il3bd9qp.fsf@zancanaro.id.au> (Carlo Zancanaro's message of "Tue, 30 Jan 2024 10:02:06 +1100") References: <788b23efd206b4ef627de06236f868f97e3cbe05.1706098718.git.carlo@zancanaro.id.au> <878r483pv5.fsf_-_@lassieur.org> <87il3bd9qp.fsf@zancanaro.id.au> Date: Tue, 30 Jan 2024 00:19:06 +0100 Message-ID: <87le873ez9.fsf@lassieur.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -0.54 X-Spam-Score: -0.54 X-Migadu-Queue-Id: 457F635FFF X-Migadu-Scanner: mx12.migadu.com X-TUID: X4bul4xyhBTf On Tue, Jan 30 2024, Carlo Zancanaro wrote: >>> + ;; Due to the way certbot runs, we need to >>> + ;; create the self-signed certificates in the >>> + ;; archive folder and symlink them into the live >>> + ;; folder. This mimics what certbot does well >>> + ;; enough to make acquiring new certificates >>> + ;; work. >> >> In another mail you say it doesn't work as well as you thought it did? >> What doesn't work? > > This comment doesn't describe the code any more. In my first attempt I > was trying to generate certificates in /etc/letsencrypt/live/ and get > certbot to write over them when it ran. Unfortunately, it refused to do > so. I then tried writing to /etc/letsencrypt/archive/ and symlinking > into /etc/letsencrypt/live/ (which is what this comment describes), but > that also failed. Certbot refuses to write over any existing files when > fetching a certificate. Oh I read the comment too quickly, I thought it was describing the /etc/certs moving. I suppose you will update it so to reflect the actual state? What you did (using /etc/certs, and symlinking stuff in /etc/letsencrypt) is a good idea I think, and it's excellent that it's backward compatible! > It looks like other acme clients might be happier to overwrite existing > files, but changing away from certbot seemed like more work than adding > a deploy hook to do what we need. Indeed! > I'll follow up with a v2 of this patch when I get a chance. Thanks! > Carlo