🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #266565

Re: (Dialog) How do I debug a 40tude "socket error" (what's a socket error?)

#266565
From: Ronald
Date: Mon, 08 Jan 2024 10:49
56 lines
2982 bytes
On Sun, 7 Jan 2024 05:08:19 -0600, VanguardLH wrote:

> You are connecting to news.neodome.net, not to neodome.net.  Their cert
> is flawed.  It is a self-signed cert; that is, they created it instead
> of using a CA (Certificate Authority).  My guess is they need to
> regenerate their self-signed cert to identify CN = news.neodome.net
> which is the host to which you are connecting.  They probably instead
> get a free site cert from LetsEncrypt.
> 
> A self-signed cert does not need to be time ranged, so it won't expire.
> However, notice their cert does have an expiration:
> 
> notAfter=Dec 31 21:59:46 2020 GMT
> 
> Maybe that gets ignored for self-signed certs.
> 
> So, it is an expired self-signed certificate

I finally figured out what happened most likely!

 [Neodome]
 client = yes
 accept = 127.0.0.1:62563
 connect = news.neodome.net:563
 verify = 0
 ;verifyChain = yes
 ;CAfile = ca-certs.pem
 ;checkHost = news.neodome.net
 ;OCSPaia = yes

I went back to the original email from the Neodome admin about the setup,
and lo and behold the ONLY thing the admin told me to use was the "verify =
0" line (which he said was because it was a self-signed certificate). 

He never gave me the rest of those lines.
I must have boilerplated them, and commented them out at that time.

This probably explains what happened.

The certificate probably was expired all along.
I probably had the correct commented out entries for a long time.

At some point, I uncommented those entries (not understanding them).
That's almost certainly when the error occurred without me noticing.
Since then, it has failed.

Just now I set the file back to what it was in that backup.
That "verify = 0" (without the others) worked to post to Neodome!

Of course, sTunnel gives the warning:
 Service [Neodome] needs authentication to prevent MITM attacks

But it's working again. 
Thank you for reminding me of what happened a few weeks ago.

This one can be chalked up to user error.
Technical Details
Message-ID: <ungjvm$16ujd$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
References: <und7gj$srbd$1@paganini.bofh.team> <v1akekkmcrn9.dlg@v.nguard.lh> <undrv0$trmf$1@paganini.bofh.team> <18gy9f6axliam$.dlg@v.nguard.lh>

Show Full Headers
Complete Article Headers
Message-ID: <ungjvm$16ujd$1@paganini.bofh.team>
Subject: Re: (Dialog) How do I debug a 40tude "socket error" (what's a socket error?)
Date: Mon, 8 Jan 2024 05:49:26 -0500
From: Ronald <ronald@nospam.me>
References: <und7gj$srbd$1@paganini.bofh.team> <v1akekkmcrn9.dlg@v.nguard.lh> <undrv0$trmf$1@paganini.bofh.team> <18gy9f6axliam$.dlg@v.nguard.lh>
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
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 10:49:27 -0000 (UTC)
User-Agent: 40tude_Dialog/2.0.15.41 (Beta 38)
Cancel-Lock: sha256:VM+C8AGeXRP43PO+eJLFFbCctAuZGpZYCUQE7r+JESo=
X-Notice: Filtered by postfilter v. 0.9.3