🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #266553

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

#266553
From: Bernd Rose
Date: Sun, 07 Jan 2024 15:56
70 lines
5058 bytes
On Sun, 7th Jan 2024 10:10:20 -0500, Ronald wrote:

> Dialog does allow me to set news.neodome.net:563 with SSL. And that works.
> Even though the certificate (we think) has expired.

That's not the point. It works, because Dialog doesn't check for expiration
of any server certificate *and* because Neodome still supports outdated and
insecure encryption methods.
 
> Does SSL NOT check certificates to see if they've expired?

The "SSL" check box is just a name for a setting indicating, that Dialog
should use a connection handshake for an encrypted transmission. In the
background several major encryption methods (SSLv2..SSLv3, TLSv1) with
a multitude of handshake methods, cipher suites, and so on can be chosen.
It is up to the handshake between the NNTP server and your client, which
encryption method is used in the end.

Certificate checking is mostly part of the handshake process and shall
ensure, that connection is established to the correct server and not to
an imposter. Dialog does /some/ checking, but offers more leeway than
most current certificate checking implementations. 

There's another risk, btw.: Sometimes current certificate checks fail with 
Dialog, because it doesn't have a large enough buffer space reserved for 
the certificate data. Very large certificates do not fit, which leads to
wrong checksums and missing certificate data. Connection to servers with
such large certificates will fail, even when they still support some old
encryption methods.
 
>> The SSL box indicates, whether encryption should be used when sending
>> information to the target address (server and port) configured inside
>> Dialog. If you enter the external NNTP server name and its port, you need
>> to check with the provider, whether encryption is supported or not. Usually,
>> port 119 means "no encryption" (SSL box off) and port 563 means "encryption"
>> (SSL box on).
>> 
>> If you enter a local (sTunnel) address, you /could/ encrypt this local
>> connection, as well. You'd need to configure sTunnel for local encryption,
>> though, and you'd need to permit the usage of outdated encryption methods
>> for this, as well. This makes no sense, whatsoever. Therefore, any local
>> connection (your localhost:55555 for example) should be configured without
>> encryption (SSL box off). This has no influence on the encryption state
>> for the outgoing connection to the NNTP server, which /will/ be encrypted
>> by sTunnel, as long as you don't explicitly tell it to /not/ do it. (Which,
>> again, wouldn't make any sense...)
> 
> I think I see what you're saying SSL does. It's a LOCAL encryption. 

That's not what I wrote. It is a setting, whether encryption should be used
when connecting to the target address shown in the entry fields beside it.
If this is a local IP-address:port combination (e. g. localhost:55555), than
it sets/unsets local encryption. If, OTOH, it is an external IP-address:port
combination (e. g. news.neodome.net:563), than it sets/unset an outgoing
encryption.
 
> So if I checked the Dialog SSL box AND if I used Stunnel, it would be twice
> encrypted, is that what I'm hearing you say will be happening?

No. If you set SSL in Dialog, then the data would be encrypted in Dialog,
sent encrypted to sTunnel, would be decrypted by sTunnel and afterwards 
newly encrypted (most likely with another method) by sTunnel. Then sent 
encrypted to the NNTP server, which again needs to decrypt it. 

Encryption between Dialog and sTunnel is - of course - superfluous: With 
access to your PC the unencrypted data is found on either end of the 
connection (Dialog and sTunnel). Nobody will hack into the /transmission/
between Dialog and sTunnel to get to the data...
 
Bernd
Technical Details
Message-ID: <7up0tqsi60su.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: <und7gj$srbd$1@paganini.bofh.team> <und84c$ssl1$1@paganini.bofh.team> <302brvey53rn$.dlg@b.rose.tmpbox.news.arcor.de> <undopl$tmdk$1@paganini.bofh.team> <undpsb$tok8$1@paganini.bofh.team> <6ucf31mc6a5g$.dlg@b.rose.tmpbox.news.arcor.de> <une2f9$u6e8$1@paganini.bofh.team> <bhfzdp41wd3j$.dlg@b.rose.tmpbox.news.arcor.de> <une9ka$uj1c$1@paganini.bofh.team> <1aoeg6pf0gpop.dlg@b.rose.tmpbox.news.arcor.de> <uneesr$urrt$1@paganini.bofh.team>

Show Full Headers
Complete Article Headers
Message-ID: <7up0tqsi60su.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: (Dialog) How do I debug a 40tude "socket error" (what's a socket error?)
Date: Sun, 7 Jan 2024 16:56:18 +0100
From: Bernd Rose <b.rose.tmpbox@arcor.de>
References: <und7gj$srbd$1@paganini.bofh.team> <und84c$ssl1$1@paganini.bofh.team> <302brvey53rn$.dlg@b.rose.tmpbox.news.arcor.de> <undopl$tmdk$1@paganini.bofh.team> <undpsb$tok8$1@paganini.bofh.team> <6ucf31mc6a5g$.dlg@b.rose.tmpbox.news.arcor.de> <une2f9$u6e8$1@paganini.bofh.team> <bhfzdp41wd3j$.dlg@b.rose.tmpbox.news.arcor.de> <une9ka$uj1c$1@paganini.bofh.team> <1aoeg6pf0gpop.dlg@b.rose.tmpbox.news.arcor.de> <uneesr$urrt$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 (d4fe10d9.135.326)
Cancel-Lock: sha1:h0N5sLAfCBj6zkq5vWltKal6Nb8=
X-User-ID: eJwFwYcBgDAMA7CXwM5ozyHD/5+A5Iw3Oi08zOWae+m6WhLF2ULJcinUF7OfhT25yEH5cOftGvQptT+hY0pdVqQD4Pb5AQn9GvI=