From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mBABAUzZVGFwhAEAgWs5BA (envelope-from ) for ; Wed, 29 Sep 2021 23:23:24 +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 0Kc2OEvZVGElGQAAB5/wlQ (envelope-from ) for ; Wed, 29 Sep 2021 21:23:23 +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 BD866D0A1 for ; Wed, 29 Sep 2021 23:23:21 +0200 (CEST) Received: from localhost ([::1]:50458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVh2u-000652-Qm for larch@yhetil.org; Wed, 29 Sep 2021 17:23:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVh2d-00064h-5Z for bug-guix@gnu.org; Wed, 29 Sep 2021 17:23:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38937) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVh2c-00041W-U8 for bug-guix@gnu.org; Wed, 29 Sep 2021 17:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVh2c-0007Zx-Py for bug-guix@gnu.org; Wed, 29 Sep 2021 17:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50872: Prosody service + letsencrypt certs improvements Resent-From: Carlo Zancanaro Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 29 Sep 2021 21:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50872 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Christine Lemmer-Webber X-Debbugs-Original-Cc: bug-guix@gnu.org, 50872@debbugs.gnu.org Received: via spool by 50872-submit@debbugs.gnu.org id=B50872.163295057729091 (code B ref 50872); Wed, 29 Sep 2021 21:23:02 +0000 Received: (at 50872) by debbugs.gnu.org; 29 Sep 2021 21:22:57 +0000 Received: from localhost ([127.0.0.1]:50479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVh2X-0007Z9-BO for submit@debbugs.gnu.org; Wed, 29 Sep 2021 17:22:57 -0400 Received: from zancanaro.com.au ([45.76.117.151]:36618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVh2T-0007Yz-Nu for 50872@debbugs.gnu.org; Wed, 29 Sep 2021 17:22:55 -0400 Received: by zancanaro.com.au (Postfix, from userid 116) id CB95D35BE4; Wed, 29 Sep 2021 21:22:51 +0000 (UTC) Received: from golem (n114-78-12-98.bla3.nsw.optusnet.com.au [114.78.12.98]) by zancanaro.com.au (Postfix) with ESMTPSA id 0008B35BE2; Wed, 29 Sep 2021 21:22:50 +0000 (UTC) References: <87h7e4tyb3.fsf@dustycloud.org> User-agent: mu4e 1.6.3; emacs 27.2 From: Carlo Zancanaro Date: Thu, 30 Sep 2021 07:06:31 +1000 Message-ID: <87zgrv13hp.fsf@zancanaro.id.au> In-reply-to: <87h7e4tyb3.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain; format=flowed 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: 50872@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=1632950601; 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; bh=e4HDEVSFXsD7WJ4BXCpikGRjP7E5UI2wXuVRvaCobv8=; b=V+wtL5V9wp6CiwpErU5559Eyg5zxOSdL/9+RemapXGz7lzE0FNPnhspP29K8jeheFPbBt4 adKJGcY1udajLtHojVP4J0SDXDk+St1HwqP9b6Ioub/RtosXWVfQokffXnLY8BI6QQGyKl yt9Uvr4Y7l8vqQYfeLnTfDUXukgw2oU17aq2jyDcfiBTcjQMwj3InuRqHN1RQ8PkMp6KGa oKFqBezO9ZnB0BUUCfk3zBRpIj8ACXJ24PzJxLzO1m3R6SZDPo1VJiUdJIemKz4Ho+ok8V DhzIp1UFCkTZEwc6VEfRGXomjxvaChvfYTZI+tsxcH2bYsH7ZSD0zEBjirXf3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632950601; a=rsa-sha256; cv=none; b=vAQ1XhF8W3YsK25Hn1gLxQXEJuHG4ifIIxwt6dqLb5DW0jZ+eIpg1PnFREkoai8fLrCt/g ZmuuDmFFzOzxreopcI28M6IesGlI3/C0rpfZeapapHwAiocYfKPltQginocNVGr6DXXat/ tlN2lGzS+fSnbpyIm/roVJgjCdA7QyN9GiBZeY9Nyx0zM8Xd8JhOvo0Ph49/zLp8+hN6xe zoJ88YYVNb6ivttKo74vLNBxGNLtaXaW/RlKxoi7BDF1123k75/WjAvMHOXvzVjf4v0T4d nGGfLcng+YW7/TJZd3QAOUMZil/uIPMDAQKIQwDPosiN/LtlSPI4UM0U/fpwSA== 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: -2.40 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: BD866D0A1 X-Spam-Score: -2.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: iAgsw90B+dyi Hi Christine, On Tue, Sep 28 2021, Christine Lemmer-Webber wrote: > Hm, in other words we really ought to run this attached to some > hook related to the letsencrypt services... when they renew > successfully, it should trigger this command, I'd think. We do > similar things for nginx, etc... I'm pretty sure Guix doesn't do anything automatic when certificates are renewed. For nginx there's an example in the manual for how to set up a deploy hook to reload the certificates[1], so I expect that you'll have to set up something similar. My prosody setup has this deploy hook: (program-file "reload-certificates" #~(let ((prosodyctl (string-append #$(specification->package "prosody") "/bin/prosodyctl"))) (system* prosodyctl "--root" "cert" "import" "/etc/letsencrypt/live") (system* prosodyctl "reload"))) but I have recently had some trouble with it (prosody hasn't been reloading the certificate properly). I don't think my issue is related to this deploy hook, though. I hope that helps! Carlo [1]: https://guix.gnu.org/en/manual/en/html_node/Certificate-Services.html