Article View: news.software.readers
Article #266569Re: (Dialog) How do I debug a 40tude "socket error" (what's a socket error?)
From: Bernd Rose
Date: Mon, 08 Jan 2024 17:21
Date: Mon, 08 Jan 2024 17:21
49 lines
2983 bytes
2983 bytes
On Mon, 8th Jan 2024 05:49:26 -0500, Ronald wrote: > 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). 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. Bernd
Technical Details
Message-ID:
<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-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>Show Full Headers
Complete Article Headers
Message-ID: <wazz56nkrzmc$.dlg@b.rose.tmpbox.news.arcor.de> Subject: Re: (Dialog) How do I debug a 40tude "socket error" (what's a socket error?) Date: Mon, 8 Jan 2024 18:21:53 +0100 From: Bernd Rose <b.rose.tmpbox@arcor.de> 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> 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 (c9bc5881.62.511) Cancel-Lock: sha1:U0jRJZJSh10mftznm+fz90DxtP0= X-User-ID: eJwNyMkBwCAIBMCWFFiOcpQN/ZcQnzNQ395hDjcMpiNEkTx1pJrrZEAo4tVzuiKTWdaP6fdeJQQG8itf74a1NaJnYCyT+QHOLxoC