Article View: news.software.nntp
Article #91479Re: Letsencrypt and innd
From: Jesse Rehmer
Date: Tue, 23 Jan 2024 12:41
Date: Tue, 23 Jan 2024 12:41
33 lines
2294 bytes
2294 bytes
On Jan 23, 2024 at 1:25:46 AM CST, "Nigel Reed" <sysop@endofthelinebbs.com> wrote: > Hi all, > > Is there anyone running innd with Letsecnrypt certificates? I've not > seen any write ups on how to configure and I'm sure it's not that bad > but the main question is how do you deal with certificate expiry? > > Which parts of innd would need to be reloaded or restarted and by using > what mechanism to cause the least amount of interference to my users > and peers? > > Maybe with enough prior knowledge and advice I can whip up a howto for > others to follow if they wish. > > Thanks, Only the nnrpd process that uses the -S flag needs to be restarted. I use the following post-renewal hook for letsencrypt, it is simple but it works. It only kills the listening daemon pid and won't impact connected clients where a separate nnrpd process has been spawned. #!/bin/sh cp -f /usr/local/etc/letsencrypt/live/news.blueworldhosting.com/fullchain.pem /usr/local/news/etc/ cp -f /usr/local/etc/letsencrypt/live/news.blueworldhosting.com/cert.pem /usr/local/news/etc/ cp -f /usr/local/etc/letsencrypt/live/news.blueworldhosting.com/privkey.pem /usr/local/news/etc/ chown news:news /usr/local/news/etc/*.pem kill `cat /usr/local/news/run/nnrpd-563.pid` su -l news -c "/usr/local/news/bin/nnrpd -S -D -p 563"
Technical Details
Message-ID:
<uooc6k$21r9$1@nnrp.usenet.blueworldhosting.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<20240123012546.1b9d5a31@wibble.sysadmininc.com>Show Full Headers
Complete Article Headers
Message-ID: <uooc6k$21r9$1@nnrp.usenet.blueworldhosting.com> Subject: Re: Letsencrypt and innd Date: Tue, 23 Jan 2024 12:41:56 +0000 From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com> References: <20240123012546.1b9d5a31@wibble.sysadmininc.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.nntp Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=fixed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 23 Jan 2024 12:41:56 -0000 (UTC) Injection-Info: nnrp.usenet.blueworldhosting.com; User-Agent: Usenapp for MacOS Cancel-Lock: sha1:3jkivWmlyEJjRqhx3Oy2Y2Nt58M= sha256:yR41Ii3OorEQfV6A16i0GXWqfjDJROWmaSLnNx0czXg= X-Usenapp: v1.27.2/d - Full License