🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #266608

Re: [Dialog] news.neodome.net stunnel.conf with workarounds for expired self-signed certificates

#266608
From: Bernd Rose
Date: Fri, 12 Jan 2024 17:59
102 lines
5608 bytes
On Thu, 11th Jan 2024 17:16:50 -0500, Ronald wrote:

Too much information, some misleading (or a misinterpretation of what
I wrote).

>  ;{Neodome0}
>  ; The boiler-plate section below "should" work but won't work in 2024
>  ; because Neodome has a self-signed certificate which is also expired

Don't confuse readers with configuration variants, that will /not/ work.

>  ;{Neodome1 workaround}
>  ; This method sets Dialog to use Dialog port 563 SSL encryption
>  ; 40Tude Dialog will NOT use the latest encryption standards.
>  ; sTunnel is not involved so the stunnel.conf should be empty

Rather insecure method, which hasn't anything to do with sTunnel.

>  ;{Neodome2 workaround}
>  ; This method sets Dialog to use sTunnel port 119 STARTTLS.
>  ; You'd think it wouldn't require a password, but it does

It _only_ requires a password when connection is established from a client,
that explicitly requests STARTTLS. It just so happens, that sTunnel can not 
be configured to connect without any encryption (except NULL encryption,
which still /is/ encryption). So, to connect to Neodome port 119 without
(STARTTLS) encryption one needs to bypass sTunnel and connect directly.
(In this case from Dialog.) Without encryption, posting isn't permitted
on Neodome, though. Therefore, this would be a read-only setup.

>  ; (Although, with the right setting, it is possible to use 
>  ; "null encryption" [aka a non-encrypting "encryption" method]) 

Which will lead nowhere, because no server should be configured to accept
such an "encryption" attempt. Therefore, NULL-encryption shouldn't be 
mentioned in a configuration template, but only in technical explanations.
(If at all. I just wanted to avoid possible wise-assed comments against
me formulating that sTunnel had _no_ way for unencrypted connections...)

Keeping in mind, that configuring sTunnel for a port 119 STARTTLS
connection to Neodome is a bit less intuitive and requires an 
additional parameter, there is no need to include this variant in
a configuration template. Connection with the dedicated port 563
does not work inferior.

>  ; For self-signed certificates that have not expired, a good way to 
>  ; deal with them is to download them & they will be checked against
>  ; the existing non-expired self-signed certificate (which has no chain)

Does not apply to the (current) Neodome setup. And because there is no
sign, that the situation may improve in the foreseeable future, there
(again) is no need to include this in configuration templates explicitly
dedicated to Neodome.

>  ;{Neodome3 workaround}
>  ; This method sets Dialog to use sTunnel port 563 encryption
>  ; Where this method does not even touch the certificate

Oh, it /does/ touch (and use) it. sTunnel just doesn't verify the
_eligibility_ of the certificate in the described setup.

>  ; It's probably the best option because it uses current encryption

Which will be any connection run through sTunnel, as long as sTunnel
is not explicitly mis-configured.

>  ; Dialog Host: 127.0.0.1
>  ; Dialog Port: 49153 (pick any unused port between 49152 & 65535)

I usually don't recommend using ports from this dynamic port range for
static tasks. This port range should be managed by the OS, which assigns
ports to applications temporarily requesting a (more-the less throwaway)
port. Any port you assign statically from this range /may/ already have 
been assigned by the OS to another program. I usually recommend to
check the official IANA list for ports from the static port ranges and
use those, that apply (only) to applications not installed on the system.

https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml

Ports 1191, 1192, 1193, 5631, 5632, 5633 are usually available and
could be read (as aide-memoire) as 119-1 ... 119-3 (for STARTTLS 
connections to an external port 119) or as 563-1 ... 563-3 for
connections to an external standard NNTP encryption port 563.

>   [Neodome3]
>    client = yes
>    accept = 127.0.0.1:49153
>    connect = news.neodome.net:563

That's what users have to look for in your lengthy document.

>  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>  ;{Neodome4 workaround}
>  ; This is a very minor variation on the method #3 tested above

It is essentially the same as your Neodome method #3. It just has
an outdated sTunnel option as extra line, which is a duplicate of
the default settings of some newer options. (Which, therefore, can
be left out from the configuration.)

Hope, this clarifies some matters a bit more...
Bernd
Technical Details
Message-ID: <1a0ddv3w8axow.dlg@b.rose.tmpbox.news.arcor.de>
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: <unpnma$23tfn$1@paganini.bofh.team> <unppcj$240fp$1@paganini.bofh.team>

Show Full Headers
Complete Article Headers
Message-ID: <1a0ddv3w8axow.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: [Dialog] news.neodome.net stunnel.conf with workarounds for expired self-signed certificates
Date: Fri, 12 Jan 2024 18:59:11 +0100
From: Bernd Rose <b.rose.tmpbox@arcor.de>
References: <unpnma$23tfn$1@paganini.bofh.team> <unppcj$240fp$1@paganini.bofh.team>
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.readers
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: solani.org;
User-Agent: 40tude_Dialog/2.0.15.41 (1c233c9e.505.340)
Cancel-Lock: sha1:EPgiIcujY/5x7JHJOZ1YChnLyhI=
X-User-ID: eJwFwQEBwCAMAzBLlLFy5JSO+ZfwJIOg92JyZWdbvKGTM2vjbAyNviaXLzzH/qTiUX1P0QhR7XrDkLtnSkLY9x2WGng//Vcb1g==