🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.free.newsservers
Article #180198

Re: [Mixmin] Did a certificate expire recently?

#180198
From: A. non Eyemouse
Date: Sun, 26 Apr 2020 10:36
90 lines
4833 bytes
On Sun, 26 Apr 2020 14:01:43 +0530
Arlen Holder <arlenholder@anyexample.com> wrote:

> In response to what "A. non Eyemouse" <somewhere@work.invalid> wrote :
> 
> > I didn't see what OS you are running this on but (as you are no
> > doubt aware) you can turn up the logging level in Stunnel for
> > debugging purposes but sometimes it still isn't very helpful. 
> 
> Thank you for your purposefully helpful information on Stunnel logs
> where, yes, I am aware, in general, of log levels, but the whole time
> I figured the problem was on the mixmin side (and it was) simply
> because I had changed nothing in the interim between working and not
> working (& back to working)
> 
> > Just happens today I've been re-building my copies of 5.56 that I
> > use on Windows as OpenSSL updated to 1.1.1g.
> 
> I didn't have openssl in my Windows software archives, so to add it, 
> I searched and found almost too many Windows binaries to choose from:
> <https://wiki.openssl.org/index.php/Binaries>
> 
> For example, a quick skim found more than I had wanted to choose from:
> o <http://gnuwin32.sourceforge.net/packages/openssl.htm>
> o <https://www.openssl.org/>
> o
> <https://www.cloudinsidr.com/content/how-to-install-the-most-recent-version-of-openssl-on-windows-10-in-64-bit/>
> o <https://www.osradar.com/install-openssl-windows/> o
> <https://slproweb.com/products/Win32OpenSSL.html> o
> <https://sourceforge.net/projects/openssl/> etc.

I've used the light installers from slproweb.com.   
I've also used the binaries built by the Curl project
https://curl.haxx.se/windows/ 
Curl project also provide .pem versions of the Mozilla root
certificates which you can use for the -CAfile when testing with
OpenSSL.
https://curl.haxx.se/docs/caextract.html

> 
> After installing & googling for syntax examples, this worked:
>  echo q | openssl s_client -connect news.mixmin.net:563 | openssl
> x509 -noout -enddate | findstr "notAfter" Which confirmed the result
> you obtained of: notAfter=Jun 26 19:57:30 2020 GMT
> 
> Given Usenet is a huge public helpdesk, the great news is now I can
> use that command in the future for self-help debugging of a server
> certificate: echo q | openssl s_client -connect news.mixmin.net:563 |
> openssl x509 -noout -enddate | findstr "notAfter" echo q | openssl
> s_client -connect news.eternal-september.org:563 | openssl x509
> -noout -enddate | findstr "notAfter" echo q | openssl s_client
> -connect news.dizum.net:563 | openssl x509 -noout -enddate | findstr
> "notAfter" etc.
> 
> This worked for mixmin & eternal september, but, unfortunately, not
> dizum: o mixmin = notAfter=Jun 26 19:57:30 2020 GMT
> o eternal-september = notAfter=Jun 13 09:09:38 2020 GMT
> o dizum = unable to load certificate
> 
> Are there any other free newsservers we can test with this command?

Windows nslookup returns a non-existent domain  for dizium.net. 

nntp.aioe.org:563 - should be OK. 

news.albasani.net:563 - this one is broken. (1) It's using a
self-signed certificate, but (2) it has expired. 


> 
> > LetsEncrypt is great but the certificates only last for three
> > months.
> 
> If I could code better, I would consider writing a script that runs
> periodically to check the known handful of free servers' encryption,
> e.g., pseudocode... for servers named
> {news.mixmin.net,news.dizum.net,news.eternal-september.org} echo q |
> openssl s_client -connect %servers%:563 | openssl x509 -noout
> -enddate | findstr "notAfter" if enddate < currentdate then print
> "Warning: %server% cert EXPIRED!' endloop
> 
> Thanks again for helpfully confirming the mixmin certificate had
> expired. Next time I can check the expiry date for myself, and others
> can benefit from this information to do the same.

Yes a script would be useful.

-- 
Mouse.
Where Morse meets House. 
Technical Details
Message-ID: <hgl6goFd5goU1@mid.individual.net>
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: <r7u737$156i$1@neodome.net> <r7ubne$o0a$1@neodome.net> <hgjcd2F26ugU1@mid.individual.net> <r82c3f$50g$1@news.mixmin.net> <hgjsfeF5cv6U1@mid.individual.net> <r83gtf$m8n$1@news.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <hgl6goFd5goU1@mid.individual.net>
Subject: Re: [Mixmin] Did a certificate expire recently?
Date: Sun, 26 Apr 2020 11:36:08 +0100
From: "A. non Eyemouse" <somewhere@work.invalid>
References: <r7u737$156i$1@neodome.net> <r7ubne$o0a$1@neodome.net> <hgjcd2F26ugU1@mid.individual.net> <r82c3f$50g$1@news.mixmin.net> <hgjsfeF5cv6U1@mid.individual.net> <r83gtf$m8n$1@news.mixmin.net>
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
Newsgroups: alt.free.newsservers
Lines: 91
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Trace: individual.net umXobL1Wn4fefXlKUoQwMwIODliskUEA3rVmeaZOFGamV7Fcs8
Cancel-Lock: sha1:dwm/T7r0edjxr86vCwHeQ+j2ENM=
X-Newsreader: Claws Mail 3.17.4 (GTK+ 2.24.32; i686-w64-mingw32)