Article View: news.software.readers
Article #266577Re: (Dialog) How do I debug a 40tude "socket error" (what's a socket error?)
From: Ronald
Date: Wed, 10 Jan 2024 08:18
Date: Wed, 10 Jan 2024 08:18
181 lines
9879 bytes
9879 bytes
On Mon, 8 Jan 2024 18:21:53 +0100, Bernd Rose wrote:
> The "verify = X" is an outdated sTunnel option and replaced by a couple
> of other options, that are more descriptive (like "verifyChain = yes/no").
>
> Setting "verify = 0" means to request a certificate, but do no checking,
> at all. A better way to deal with a self-signed certificate would be, to
> download it from a secure location and keep it locally as peer-Neodome.pem
> (or any other name). Then use a sTunnel configuration entry like:
>
> [Neodome]
> client = yes
> accept = 127.0.0.1:62563
> connect = news.neodome.net:563
> verifyPeer = yes
> CAfile = peer-Neodome.pem
>
> As long as the certificate is unchanged on the server, encrypted connection
> would be established by sTunnel.
>
> To get the certificate in its current state, you can use the above sTunnel
> settings without the last 2 lines. Connect once to Neodome and use the
> sTunnel right mouse menu entry "Save Peer certificate -> peer-Neodome.pem"
> to retrieve the certificate into the local sTunnel certificate store. (This
> is inside the <config> subfolder of the main sTunnel directory or somewhere
> in the virtual store for sTunel.) Afterwards, add the last 2 lines to
> ensure the verification process. Please note, that in your case this will
> fail, because expired certificates are not acceptable for the verification!
>
> Another notice: Saving a certificate will be grayed out, as long as there
> was no recent connection to the server.
Thank you for that advice as the Stunnel "Save Peer Certificate" instance
does not last long (as you said it wouldn't) after you've posted articles.
Stunnel: Save Peer Certificate -> Peer-Neodome2.pem
If you've just posted, for example, it will not be grayed out.
But if you reload the configuration file, it instantly grays out.
When it's not grayed out, up comes a box saying:
Stunnel 5.69 on Win64
Peer certificate change has been saved.
Add the following lines to section [Neodome2]:
CAfile = peer-Neodome2.pem
verifyPeer = yes
to enable cryptographic authentication.
Then reload stunnel configuration file.
I didn't test adding it because, as you noted, it will fail on this
particular situation because the Neodome certificate has long expired.
Anyway, if others are using Neodome with Dialog (probably not likely), here
are the four different test suggestions from Bernd & Vanguard that worked.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;{Neodome} stunnel.conf
; Use a different port for each identity between 49152 & 65535
; Stunnel log will always report at least these next four lines:
; Reading configuration from file (path)\stunnel.conf
; UTF-8 byte order mark detected
; FIPS mode disabled
; Configuration successful
; Like it or not, posting to news.neodome.net requires a login/password
; Like it or not, news.neodome.net requires at least a 10-char passwd
; Like it or not, the news.neodome.net certificate is self-signed
; Like it or not, the news.neodome.net certificate expired in 12/2020
; Like it or not, news.neodome.net REQUIRES encryption when posting
; Like it or not, Dialog (circa 2005) uses old encryption standards
; Like it or not, news.neodome.net won't accept Dialog port 119
; Like it or not, news.neodome.net won't accept Dialog port 119 SSL
; Like it or not, news.neodome.net won't accept Dialog port 563
; But news.neodome.net will accept Dialog port 563 with Dialog SSL
; Like it or not, Dialog port 563 SSL uses old encryption standards
; These four tests suggested by Bernd & Vanguard worked in Jan 2024
; 1. news.neodome.net accepts Dialog port 563 SSL posts
; 2. news.neodome.net accepts sTunnel port 119 STARTTLS posts
; 3. news.neodome.net accepts sTunnel port 563 posts (ignoring the cert)
; 4. news.neodome.net accepts sTunnel port 563 posts (acknowledging cert)
; Each solution below is tested workaround thanks to Bernd Rose & Vanguard
; Like it or not, Dialog obfuscates or omits some identify information
; So you may want to save that identify information here in stunnel.conf
; Neodome Identity: (archive your real email address here if you like)
; Dialog Identity: (archive your Dialog email address here if you like)
; Dialog Username = (archive your Dialog username here if you like)
; Dialog Password = (archive your Dialog password here if you like)
; System timezone: (archive your system timezone here if you like)
; Like it or not, SSL often cares about accurate time zone matching
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;{Neodome1}
; 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
; Dialog Host: news.neodome.net
; Dialog Port: 563
; Dialog SSL: checked
; Dialog Username: (required)
; Dialog Password: (required)
; Dialog Allwd. conn.: 2
; Dialog Use pipelining (unchecked)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;{Neodome2}
; This method sets Dialog to use sTunnel port 119 STARTTLS.
; You'd think it wouldn't require a password, but it does.
; If you are able to connect through sTunnel to a server,
; that connection will always be encrypted (e.g., as STARTTLS).
; (Although, with the right setting, it is possible to use
; "null encryption" [aka a non-encrypting "encryption" method])
; Setting sTunnel to connect with protocol NNTP on port 119
; leads to a handshake with STARTTLS by default
; Like it or not, you'll see these sTunnel warnings with this entry
; LOG3[main]: No trusted certificates found
; LOG4[main]: Service [Neodome2] needs authentication to prevent MITM attacks
; Dialog Host: 127.0.0.1
; Dialog Port: 65535 (pick any unused port between 49152 & 65535)
; Dialog SSL: unchecked
; Dialog Username: (required)
; Dialog Password: (required)
; Dialog Allwd. conn.: 2
; Dialog Use pipelining (unchecked)
; 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).
; In Stunnel, if you've recently posted, you can do the following:
; Stunnel: Save Peer Certificate -> Peer-Neodome2.pem
; Up comes a box saying:
; Stunnel 5.69 on Win64
; Peer certificate change has been saved.
; Add the following lines to section [Neodome2]:
; CAfile = peer-Neodome2.pem
; verifyPeer = yes
; to enable cryptographic authentication.
; Then reload stunnel configuration file.
; This approach will fail for neodome but only because it is expired
[Neodome2]
client = yes
accept = 127.0.0.1:65535
connect = news.neodome.net:119
protocol = nntp
; CAfile = peer-Neodome2.pem
; verifyPeer = yes
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;{Neodome3}
; This method sets Dialog to use sTunnel port 563 encryption
; Where this method does not even touch the certificate
; It's probably the best option because it uses current encryption
; Dialog Host: 127.0.0.1
; Dialog Port: 49152 (pick any unused port between 49152 & 65535)
; Dialog SSL: unchecked
; Dialog Username: (required)
; Dialog Password: (required)
; Dialog Allwd. conn.: 2
; Dialog Use pipelining (unchecked)
; Like it or not, you'll see these sTunnel warnings with this entry
; LOG3[main]: No trusted certificates found
; LOG4[main]: Service [Neodome3] needs authentication to prevent MITM attacks
; [Neodome3]
; client = yes
; accept = 127.0.0.1:49152
; connect = news.neodome.net:563
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;{Neodome4}
; This is a very minor variation on the method #3 tested above.
; This method sets Dialog to use sTunnel port 563 encryption
; Where this method requires but does not check the certificate
; The "verify = 0" was initially suggested by the Neodome admin
; The "verify = 0" requests a certificate but does not check it
; Dialog Host: 127.0.0.1
; Dialog Port: 49153 (pick any unused port between 49152 & 65535)
; Dialog SSL: unchecked
; Dialog Username: (required)
; Dialog Password: (required)
; Dialog Allwd. conn.: 2
; Dialog Use pipelining (unchecked)
; Like it or not, you'll see these sTunnel warnings with this entry
; LOG3[main]: No trusted certificates found
; LOG4[main]: Service [Neodome4] needs authentication to prevent MITM attacks
;[Neodome4]
; client = yes
; accept = 127.0.0.1:49153
; connect = news.neodome.net:563
; verify = 0
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Technical Details
Message-ID:
<unljtd$1ofg5$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-mailReferences:
<und7gj$srbd$1@paganini.bofh.team> <v1akekkmcrn9.dlg@v.nguard.lh> <undrv0$trmf$1@paganini.bofh.team> <18gy9f6axliam$.dlg@v.nguard.lh> <ungjvm$16ujd$1@paganini.bofh.team> <wazz56nkrzmc$.dlg@b.rose.tmpbox.news.arcor.de>Show Full Headers
Complete Article Headers
Message-ID: <unljtd$1ofg5$1@paganini.bofh.team> Subject: Re: (Dialog) How do I debug a 40tude "socket error" (what's a socket error?) Date: Wed, 10 Jan 2024 03:18:54 -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> <ungjvm$16ujd$1@paganini.bofh.team> <wazz56nkrzmc$.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 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: Wed, 10 Jan 2024 08:18:54 -0000 (UTC) User-Agent: 40tude_Dialog/2.0.15.41 (Beta 38) Cancel-Lock: sha256:VZF4X534QuIZYFzEbaR5C0o41jfeSdMBIsFEryWFeAw= X-Notice: Filtered by postfilter v. 0.9.3