Article View: news.software.readers
Article #266598Re: [Dialog] news.neodome.net stunnel.conf with workarounds for expired self-signed certificates
From: Larry Wolff
Date: Fri, 12 Jan 2024 05:07
Date: Fri, 12 Jan 2024 05:07
152 lines
8799 bytes
8799 bytes
On 1/11/2024 5:16 PM, Ronald wrote:
> On Thu, 11 Jan 2024 16:47:52 -0500, Ronald wrote:
> Cleaned it up a bit so that it can be saved in a Dialog archive.
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ; stunnel.conf (tested on January 10th, 2024)
> ; <https://groups.google.com/g/news.software.readers/c/DTYKUX3VwLw>
> ; <https://groups.google.com/g/news.software.readers/c/sxkkJYuI728>
> ; Each solution below is a tested workaround thanks mostly to Bernd Rose
> ; 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)
> ; Like it or not, SSL often cares about accurate time zone matching
> ; System timezone: (archive your system timezone here if you like)
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ; Apparently news.neodome.net does not require authentication to read
> ; However, news.neodome.net requires a login/password to post
> ; And news.neodome.net requires at least a 10-character password
> ; Unfortunately, the news.neodome.net certificate is self-signed
> ; And worse, the news.neodome.net certificate expired in 12/2020
> ; Even so, news.neodome.net REQUIRES encryption when posting
> ; With the result that news.neodome.net won't accept Dialog port 119
> ; Unfortunately, Dialog (circa 2005) uses old encryption standards
> ; And unfortunately news.neodome.net won't accept Dialog port 119 SSL
> ; However news.neodome.net will accept Dialog port 563 old encryption
> ; And news.neodome.net will accept stunnel port 119 STARTTLS encryption
> ; Also news.neodome.net will accept that the certificate simply exists
> ; That gave us four working workarounds to the encryption problem set
> ; 1. news.neodome.net accepts Dialog port 563 SSL encryption
> ; 2. news.neodome.net accepts sTunnel port 119 protocol=nntp encryption
> ; 3. news.neodome.net accepts sTunnel port 563 ignoring the certificate
> ; 4. news.neodome.net accepts sTunnel port 563 acknowledging the cert
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ;{Neodome0}
> ; The boiler-plate section below "should" work but won't work in 2024
> ; because Neodome has a self-signed certificate which is also expired
> ; [Neodome0]
> ; Dialog Host: 127.0.0.1
> ; Dialog Port: 65534 (pick an unused port between 49152 & 65535)
> ; Dialog SSL: unchecked
> ; Dialog Username: (required for posting to most text newsgroups)
> ; Dialog Password: (required for posting to most text newsgroups)
> ; Dialog Allwd. conn.: 2
> ; Dialog Use pipelining (unchecked)
> ; client = yes
> ; accept = 127.0.0.1:63534
> ; connect = news.neodome.net:563
> ; verifyChain = yes
> ; CAfile = ca-certs.pem
> ; checkHost = news.neodome.net
> ; OCSPaia = yes
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ;{Neodome1 workaround}
> ; 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 for posting to most text newsgroups)
> ; Dialog Password: (required for posting to most text newsgroups)
> ; Dialog Allwd. conn.: 2
> ; Dialog Use pipelining (unchecked)
> ; No stunnel.conf entries are used for this [Neodome1] workaround
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ;{Neodome2 workaround}
> ; 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: No trusted certificates found
> ; LOG4: Service [Neodome2] needs authentication to prevent MITM attacks
> ; Dialog Host: 127.0.0.1
> ; Dialog Port: 49152 (pick any unused port between 49152 & 65535)
> ; Dialog SSL: unchecked
> ; Dialog Username: (required for posting to most text newsgroups)
> ; Dialog Password: (required for posting to most text newsgroups)
> ; 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.
> [Neodome2]
> client = yes
> accept = 127.0.0.1:49152
> connect = news.neodome.net:119
> protocol = nntp
> ; CAfile = peer-Neodome2.pem
> ; verifyPeer = yes
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ;{Neodome3 workaround}
> ; 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: 49153 (pick any unused port between 49152 & 65535)
> ; Dialog SSL: unchecked
> ; Dialog Username: (required for posting to most text newsgroups)
> ; Dialog Password: (required for posting to most text newsgroups)
> ; Dialog Allwd. conn.: 2
> ; Dialog Use pipelining (unchecked)
> ; Like it or not, you'll see these sTunnel warnings with this entry
> ; LOG3: No trusted certificates found
> ; LOG4: Service [Neodome3] needs authentication to prevent MITM attacks
> [Neodome3]
> client = yes
> accept = 127.0.0.1:49153
> connect = news.neodome.net:563
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ;{Neodome4 workaround}
> ; 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: 49154 (pick any unused port between 49152 & 65535)
> ; Dialog SSL: unchecked
> ; Dialog Username: (required for posting to most text newsgroups)
> ; Dialog Password: (required for posting to most text newsgroups)
> ; Dialog Allwd. conn.: 2
> ; Dialog Use pipelining (unchecked)
> ; Like it or not, you'll see these sTunnel warnings with this entry
> ; LOG3: No trusted certificates found
> ; LOG4: Service [Neodome4] needs authentication to prevent MITM attacks
> [Neodome4]
> client = yes
> accept = 127.0.0.1:49154
> connect = news.neodome.net:563
> verify = 0
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Does this set the encryption to TLS or to something else?
Technical Details
Message-ID:
<unqhen$10602$1@novabbs.org>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:
<unpnma$23tfn$1@paganini.bofh.team> <unppcj$240fp$1@paganini.bofh.team>Show Full Headers
Complete Article Headers
Message-ID: <unqhen$10602$1@novabbs.org> Subject: Re: [Dialog] news.neodome.net stunnel.conf with workarounds for expired self-signed certificates Date: Fri, 12 Jan 2024 00:07:30 -0500 From: Larry Wolff <larrywolff@larrywolff.net> References: <unpnma$23tfn$1@paganini.bofh.team> <unppcj$240fp$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 Organization: rocksolid2 (novabbs.org) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Injection-Date: Fri, 12 Jan 2024 05:07:36 -0000 (UTC) Injection-Info: novabbs.org; User-Agent: Xnews/2006.08.24 X-Spam-Checker-Version: SpamAssassin 4.0.0