🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.free.newsservers
Article #185384

Re: Check certificate for news server (testing neodome)

#185384
From: lms
Date: Mon, 08 Jan 2024 09:13
236 lines
11180 bytes
On 07 Jan 2024, Ronald <ronald@nospam.me> posted some
news:unfp57$15kco$1@paganini.bofh.team: 

> On Mon, 8 Jan 2024 02:58:21 +0100, Carlos E.R. wrote:
> 
>>> I don't know what the output is SUPPOSED to be for a self-signed
>>> certificate. I don't even know what a self-signed certificate even
>>> means. 
>> 
>> That it is not signed by a certificate authority, and thus will not
>> be accepted automatically by your client software.
> 
> The strange thing is the self-signed certificate apparently expired 3
> years ago yet I've been posting to 563 using the same setup for years
> on end. 
>  ;40tude Dialog newsreader setup
>  Dialog Host: 127.0.0.1
>  Dialog Port: 123456
>  Dialog SSL: unchecked
>  Dialog Username: mylogin
>  Dialog Password: mypasswd
>  Dialog Allwd. conn.: 2
>  Dialog Use pipelining (unchecked)
> 
>  ; sTunnel.conf setup
>  [Neodome]
>  client = yes
>  accept = 127.0.0.1:123456
>  connect = news.neodome.net:563
>  verify = 0
>  verifyChain = yes
>  CAfile = ca-certs.pem
>  checkHost = news.neodome.net
>  OCSPaia = yes
> 
> How could that be that this setup worked until only about three weeks
> ago? 

Maybe your user credentials got cancelled / revoked.  Reach out to neodome 
and ask: admin@neodome.net.

> What suddenly happened a few weeks ago was a "socket error" in 40Tude
> Dialog, which I didn't debug fully until yesterday as an expired cert.

What OS are you using and specifically what is the exact 40Tude socket 
error you are receiving? 

> I know what I just said makes no sense.

Makes sense.  40Tude is known to have socket errors for various sometimes 
illogical and unexplainable reasons.

> How could I have been posting all along with the same setup which all
> of a sudden errors out - but when I debug - the certificate expired
> years ago? 

Certificate has nothing to do with it.  There are equipment management 
environments running 12-year-old+ expired certs out there.  

https://www.stunnel.org/TODO.html
stunnel TODO
Updated defaults planned for stunnel 6.xx
More secure defaults planned for the next major version.

OCSPaia = yes

Current download version:
stunnel-5.71-win64-installer.exe	4078592	19th September 2023

OCSPaia = yes | no
validate certificates with their AIA OCSP responders

This option enables stunnel to validate certificates with the list of OCSP 
responder URLs retrieved from their AIA (Authority Information Access) 
extension.

verifyChain = yes | no
verify the peer certificate chain starting from the root CA

For server certificate verification it is essential to also require a 
specific certificate with checkHost or checkIP.

The self-signed root CA certificate needs to be stored either in the file 
specified with CAfile, or in the directory specified with CApath.

default: no

checkHost = HOST
verify the host of the end-entity (leaf) peer certificate subject

Certificates are accepted if no subject checks were specified, or the host 
name of the end-entity (leaf) peer certificate matches any of the hosts 
specified with checkHost.

Multiple checkHost options are allowed in a single service section.

This option requires OpenSSL 1.0.2 or later.

CAfile = CA_FILE
load trusted CA certificates from a file

The loaded CA certificates will be used with the verifyChain and 
verifyPeer options.

verify = LEVEL
verify the peer certificate

This option is obsolete and should be replaced with the verifyChain and 
verifyPeer options.

level 0
Request and ignore the peer certificate chain.

level 1
Verify the peer certificate chain if present.

level 2
Verify the peer certificate chain.

level 3
Verify the peer certificate chain and the end-entity (leaf) peer 
certificate against a locally installed certificate.

level 4
Ignore the peer certificate chain and only verify the end-entity (leaf) 
peer certificate against a locally installed certificate.

default
No verify.

START HERE

Do yourself a favor, comment out the lines as shown, restart stunnel and 
test your connection again.

   ; Windows sTunnel setup (for old clients with old TLS or SSL)
   [Neodome]
   client = yes
   accept = 127.0.0.1:60563 [Use the same internal port as in Dialog]
   connect = news.neodome.net:563
   ; Use these next 5 lines to check the certificate for validity
   ;verify = 0
   ;verifyChain = yes
   ;CAfile = ca-certs.pem
   ;checkHost = news.neodome.net
   ;OCSPaia = yes


Testing what I see.

OpenSSL-Win64>bin\openssl s_client -connect news.neodome.net:563

CONNECTED(0000023C)
---
Certificate chain
 0 s:/O=Neodome/CN=neodome.net/emailAddress=admin@neodome.net
   i:/O=Neodome/CN=neodome.net/emailAddress=admin@neodome.net
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIDZzCCAk+gAwIBAgIJAMjzT5Snv/udMA0GC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24wXRN67
9Ci6TbDyF1udZPzfe/Yyjtw1beKJ4/cZgB02bQx3VqdlF0B0vlWp+4faUKmdaRnX
FEa++THLqrNGbDg=
-----END CERTIFICATE-----
subject=/O=Neodome/CN=neodome.net/emailAddress=admin@neodome.net
issuer=/O=Neodome/CN=neodome.net/emailAddress=admin@neodome.net
---
No client certificate CA names sent
Peer signing digest: SHA512
Server Temp Key: ECDH, P-256, 256 bits
---
SSL handshake has read 1534 bytes and written 433 bytes
---
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-GCM-SHA384
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : ECDHE-RSA-AES256-GCM-SHA384
    Session-ID: 
8CBD215E5DD10739672C0189CAB9007777FA8EF013CAD6CC5280D82D113DAEE0
    Session-ID-ctx: 
    Master-Key: 
47B070587E3826A9C73838A37FFA4EA1035B9D1555EA0FB75CAE022CBEF3CEE866255601AC
5783213AE35B5A19D8E8F8
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    TLS session ticket lifetime hint: 300 (seconds)
    TLS session ticket:
    0000 - e9 15 59 e1 fe 63 3f 94-ac 87 ea 4d a0 b3 f5 2c   
..Y..c?....M...,
    0010 - bb b6 70 ae ad 89 c2 fb-ce 32 90 75 ba 24 4a 2c   
..p......2.u.$J,
    0020 - c5 07 4e 02 71 14 a0 13-a1 3e 3e a6 60 4d c8 16   
..N.q....>>.`M..
    0030 - c7 91 7d b1 bd 18 ef 7b-26 c7 18 cf 0b 04 a4 21   
..}....{&......!
    0040 - 2a 50 c4 e1 88 26 6a 2d-b6 57 2f 08 9b 30 6e d0   *P...&j-
.W/..0n.
    0050 - 27 db a4 af 7d 61 cb 61-b1 26 81 f3 1f b8 5f 52   
'...}a.a.&...._R
    0060 - 7c f6 cd 34 09 b2 6f 69-90 81 cc cf ce 01 59 6d   
|..4..oi......Ym
    0070 - 6f 59 8c e3 98 49 a5 34-be 2a 90 ba d9 c0 a0 86   
oY...I.4.*......
    0080 - 2d 44 f2 a9 ea 5c 11 c8-c0 18 90 08 38 7e bb 21   -
D...\......8~.!
    0090 - d9 4e e2 91 54 99 16 36-95 ba 60 51 bf 2e 12 0b   
.N..T..6..`Q....

    Start Time: 1704700781
    Timeout   : 300 (sec)
    Verify return code: 10 (certificate has expired)
---
200 news.neodome.net InterNetNews NNRP server INN 2.6.3 ready (posting ok)
Technical Details
Message-ID: <35b99bcf957616172298c2679f71cd3e@dizum.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <undqeu$tpek$1@paganini.bofh.team> <te1s6kxkvs.ln2@Telcontar.valinor> <unfp57$15kco$1@paganini.bofh.team>

Show Full Headers
Complete Article Headers
Message-ID: <35b99bcf957616172298c2679f71cd3e@dizum.com>
Subject: Re: Check certificate for news server (testing neodome)
Date: Mon, 08 Jan 2024 09:13:17 +0000
From: lms <lms@example.org>
References: <undqeu$tpek$1@paganini.bofh.team> <te1s6kxkvs.ln2@Telcontar.valinor> <unfp57$15kco$1@paganini.bofh.team>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Injection-Info: neodome.net; posting-account="mail2news"; key="YDA/5SXIGodIYBO6hkNLaJogReZ+aXQn2v6mbzDNMEcEMGHIOsFYXj4FdN7AXKRycR89d6 wghoBEHWS0V0uzItj6CL3DoMlGR0Xf/icO2ExHtcoZDNiBZgCT3sUyExkYorkYlFKyuOTTu3d8H z8lWd38FBGT92ny7dgPyiPm/NA9U/7LLu1m7pMchMVN7sMzXiVsWWUDL4PyF9EpBcSANYnZNnjk +UOYS/Xt6oan/NmbWRzt2xBTJJZQ3+JlIMMTBqAeF2S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t1FkPRYNaKWh9LYh4CC0gPKVkVB1R11bxoEGqNPPe0JNnzn0yYMrKVj045M1h0yaOsf5 Qoma0UyE/CJy8KyB0QXwdoel6BjzV8LeNC+xus1zJDtdPPlzZWpEUczDKvjnOs0zzLSdnsF4Sdp Sl8pBt9a1Qh9QnycjwMB74IWvcH4c1gL1SRzpZEy/jeNrERcWv8jCz8jVy2zrRHUtMAuxW/6OHJ Cdz6K7u7Ya87T4dKVHLlkVB4Ujt+SUzR0rHTlyTAUSlxUXkiOYSqELw0bXZt5VMeBbqQFK+r3tf GT2sEtz35iSDA47ubLapgMj5qtL9hmhDCHGcFsShQDPDx58tyaByOacxjjtQ7WoHVYveaOf1q0L M0TNtVi+S+ZB8UcYawj1tM9hHNV4GvXgvccvkHz0EBJllLdnnp9k9SH8lb5ivrMQe9MdML375PP GHPTIUwjW6XGH4B9L1sl31mTbcWHgxg1mvPgK3tzOxxZO+VSLx4pcJJZgE1dbFqzinrG2AqdhZR M6SStlcsa8Pm5SJBurtUoB9piPfr6txU3PNmbc887SYZaS7QPq1FXVx8dhxJsovQ=="; mail-complaints-to="abuse@neodome.net"
Injection-Date: Mon, 8 Jan 2024 09:15:01 +0000 (UTC)
Newsgroups: alt.free.newsservers
Comments: This message did not originate from the Sender address above. It was remailed automatically by anonymizing remailer software. Please report problems or inappropriate use to the remailer administrator at <abuse@dizum.com>.
Comments: This message was transferred to Usenet via mail2news gateway at <mail2news@neodome.net>. Please send questions and concerns to <admin@neodome.net>. Report inappropriate use to <abuse@neodome.net>.
Sender: Nomen Nescio <nobody@dizum.com>