🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #91483

Re: Letsencrypt and nnrpd

#91483
From: Julien ÉLIE
Date: Tue, 23 Jan 2024 18:31
52 lines
2954 bytes
Hi Jesse, Nigel,

> 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.

Are you sure that hook is really needed?  When not restarting nnrpd, 
running as a daemon, after a renewal of certificate, did you find an issue?

I'm also using Let's Encrypt certificates, automatically renewed by 
Certbot, and I do not restart nnrpd.  When a new connection arrives for 
a news client, nnrpd forks and it is that fork which reads the 
certificates, and therefore will take into account the new one.  The 
running daemon does not have them in memory.
Same thing as readers.conf by the way: you don't have to restart the 
nnrpd daemon to take a change in readers.conf into account.


FWIW, my configuration with a 3072-bit RSA key (seems like what will be 
the most widely supported by clients):

% cat news.trigofacile.com.conf
version = 1.12.0
archive_dir = /etc/letsencrypt/archive/news.trigofacile.com
cert = /etc/letsencrypt/live/news.trigofacile.com/cert.pem
privkey = /etc/letsencrypt/live/news.trigofacile.com/privkey.pem
chain = /etc/letsencrypt/live/news.trigofacile.com/chain.pem
fullchain = /etc/letsencrypt/live/news.trigofacile.com/fullchain.pem

[renewalparams]
account = xxx
key_type = rsa
authenticator = standalone
server = https://acme-v02.api.letsencrypt.org/directory
rsa_key_size = 3072



And inn.conf:
tlscapath:   /etc/letsencrypt/live/news.trigofacile.com
tlscertfile: /etc/letsencrypt/live/news.trigofacile.com/fullchain.pem
tlskeyfile:  /etc/letsencrypt/live/news.trigofacile.com/privkey.pem


Make sure that the permission rights are properly set so that the news 
user or the news group can read these *directories* and *files*, and 
that the private key is not world-readable.

-- 
Julien ÉLIE

« Prouidentia, dum ortum ante obitum ponit, sapienter fecit, sin autem
   quid uitae sit notum ? » (Alphonse Allais)
Technical Details
Message-ID: <uop0m8$2lau$1@news.trigofacile.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
References: <20240123012546.1b9d5a31@wibble.sysadmininc.com> <uooc6k$21r9$1@nnrp.usenet.blueworldhosting.com>

Show Full Headers
Complete Article Headers
Message-ID: <uop0m8$2lau$1@news.trigofacile.com>
Subject: Re: Letsencrypt and nnrpd
Date: Tue, 23 Jan 2024 19:31:36 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <20240123012546.1b9d5a31@wibble.sysadmininc.com> <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-mail
Newsgroups: news.software.nntp
Organization: Groupes francophones par TrigoFACILE
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 23 Jan 2024 18:31:36 -0000 (UTC)
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:yOT2TFUGTwrHIlnfVnqsr8LKQM0= sha256:F0foPM+3WL+blxHnzzVs2ynoksRNFlslZ2opcTqYPgM=
In-Reply-To: <uooc6k$21r9$1@nnrp.usenet.blueworldhosting.com>