🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.free.newsservers
Article #185393

Re: Check certificate for news server (testing neodome)

#185393
From: Ronald
Date: Mon, 08 Jan 2024 11:40
124 lines
5666 bytes
On Mon, 8 Jan 2024 12:09:09 +0100, Marco Moock wrote:

>> Of course sTunnel complains that MITM attacks can happen but I'm not
>> worried about that (as I only use encryption because Neodome requires
>> it).
> 
> You can use 119 without STARTTLS.

I don't know what that "without STARTTLS" means, but I already tried 119
with and without the 40Tude Dialog "SSL" button checked & posting failed.

You can _read_ from Neodome servers using this basic newsreader setup.
   Dialog Host: news.neodome.net
   Dialog Port: 119
   Dialog SSL: unchecked
   Dialog Username: leave blank
   Dialog Password: leave blank
   Dialog Allwd. conn.: 2
   Dialog Use pipelining (unchecked)

You can post to Neodome using the old deprecated Dialog encryption.
   Dialog Host: news.neodome.net
   Dialog Port: 563
   Dialog SSL: checked
   Dialog Username: your_uname
   Dialog Password: your_passwd
   Dialog Allwd. conn.: 2
   Dialog Use pipelining (unchecked) 

You _should_ post to Neodome (with an account) using sTunnel encryption
   Dialog Host: 127.0.0.1  [You can use "localhost" if you like]
   Dialog Port: 60563      [You can choose any unused port you like]
   Dialog SSL: unchecked
   Dialog Username: your_uname
   Dialog Password: your_passwd
   Dialog Allwd. conn.: 2
   Dialog Use pipelining (unchecked)

   [Neodome]
   ; This skips the check of the expired self-signed certificate
   client = yes
   accept = 127.0.0.1:60563
   connect = news.neodome.net:563
   verify = 0
   ; verifyChain = yes
   ; CAfile = ca-certs.pem
   ; checkHost = news.neodome.net
   ; OCSPaia = yes

This also works to post to Neodome with an account using sTunnel encryption
   Dialog Host: 127.0.0.1  [You can use "localhost" if you like]
   Dialog Port: 60563      [You can choose any unused port you like]
   Dialog SSL: unchecked
   Dialog Username: your_uname
   Dialog Password: your_passwd
   Dialog Allwd. conn.: 2
   Dialog Use pipelining (unchecked)

   ; sTunnel will use the latest encryption standards (Dialog will not)
   [Neodome]
   ; This skips encryption for when the certificate has expired
   client = yes
   accept = localhost:65555
   connect = news.neodome.net:563

If all else fails, apparently you can post using anonymous remailers.
But I don't know how to do that.

>> Even the original email from the Neodome admin only mentions that one
>> line, saying it's needed because it's a self-signed certificate. 
>> 
>> What must have happened is at some point I uncommented those lines.
>> Silly me. The problem turns out to have been self inflicted.
>> 
>> What I learned in this thread is that there are two separate tasks.
>> One is CHECKING the certificate.
>> The other is ENCRYPTING the packets.
> 
> And reading/posting is another task.
> If one of that works, the connection is established.

Yes. Reading doesn't need login credentials, but posting does.
Posting needs encryption but it does not need certificate checking.
In fact, checking the certificate turned out to be the problem all along.
The certificate doesn't want to be checked. :->

> 
>> By setting "verify = 0" I'm telling sTunnel to NOT check the
>> certificate. So it doesn't matter that it has been expired for over
>> three years.
> 
> That will ignore that it is expired.
> But that won't fix the problem that you aren't allowed to post.

I never said I wasn't allowed to post. 
The only problem was the socket error.

Turns out that simply meant that the post failed.
But it only failed because the certificate checking failed.

Once I told sTunnel to not check the certificate, posting worked again.
This is the correct setup for sTunnel with Neodome for posting.

 ;40tude Dialog newsreader setup
 Dialog Host: 127.0.0.1  [localhost also works]
 Dialog Port: 62563      [use any available unused port]
 Dialog SSL: unchecked
 Dialog Username: mylogin [login is assigned by Neodome admin]
 Dialog Password: mypasswd [passwd is assigned by Neodome admin]
 Dialog Allwd. conn.: 2
 Dialog Use pipelining (unchecked)

 ; sTunnel.conf setup
 [Neodome]
 client = yes
 accept = 127.0.0.1:62563  [use whatever was assigned in Dialog]
 connect = news.neodome.net:563
 verify = 0 [this is required to /skip/ the certificate checks]
 ;verifyChain = yes 
 ;CAfile = ca-certs.pem
 ;checkHost = news.neodome.net
 ;OCSPaia = yes

That works for posting!
Technical Details
Message-ID: <ungmvt$173od$1@paganini.bofh.team>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <undqeu$tpek$1@paganini.bofh.team> <unevbk$6eke$2@solani.org> <ung57r$166to$1@paganini.bofh.team> <s2ss6kxr43.ln2@Telcontar.valinor> <ungg3j$5hkb$5@solani.org> <ungkpf$170ai$1@paganini.bofh.team> <ungl4l$5hkb$8@solani.org>

Show Full Headers
Complete Article Headers
Message-ID: <ungmvt$173od$1@paganini.bofh.team>
Subject: Re: Check certificate for news server (testing neodome)
Date: Mon, 8 Jan 2024 06:40:45 -0500
From: Ronald <ronald@nospam.me>
References: <undqeu$tpek$1@paganini.bofh.team> <unevbk$6eke$2@solani.org> <ung57r$166to$1@paganini.bofh.team> <s2ss6kxr43.ln2@Telcontar.valinor> <ungg3j$5hkb$5@solani.org> <ungkpf$170ai$1@paganini.bofh.team> <ungl4l$5hkb$8@solani.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: alt.free.newsservers
Organization: To protect and to server
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 8 Jan 2024 11:40:46 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1281805"; posting-host="R8jzoRbLjiM/r2rQyny/kg.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: 40tude_Dialog/2.0.15.41 (Beta 38)
Cancel-Lock: sha256:CiOEWH6VDAR1mWrlyYc+xIE9gipDsFx9JRPKKcNUdJY=
X-Notice: Filtered by postfilter v. 0.9.3