🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.free.newsservers
Article #180664

Re: <mixmin> Steve Crook

#180664
From: Scott Lurndal
Date: Mon, 29 Mar 2021 06:28
184 lines
10130 bytes
>> Anyone know why mixmin fails?
> 
> Looks like the Let's Encrypt intermediate certificate is not installed
> on your machine.

Thanks for that advice that the Let's Encrypt intermediate certificate
on my Windows 10 Pro machine had expired for some reason unknown to me.
https://letsencrypt.org/certs/lets-encrypt-r3-cross-signed.txt

Not knowing how to "install a certificate", the first thing I did was
(1) I ran "C:\windows\system32\certmgr.msc" at the admin prompt.
(2) I manually searched for "Lets Encrypt" which I found at
    Intermediate Certification Authorities -> Certificates -> 
    "Let's Encrypt Authority X3" -> Issued By "DST Root CA X3" -> 
    Expiration Date "3/17/2021" -> Intended Purposes "<All>"
(3) It's not obvious how to update that expired certificate though.

Then I downloaded these intermediate Let's Encrypt certificates.
https://letsencrypt.org/certificates/#intermediate-certificates

(1) "Active" Let's Encrypt R3 signed by ISRG Root X1 (pem)
    https://letsencrypt.org/certs/lets-encrypt-r3.pem
(2) "Active" Let's Encrypt R3 cross-signed by IdenTrust (pem)
    https://letsencrypt.org/certs/lets-encrypt-r3-cross-signed.pem
(3) "Upcoming" Let's Encrypt E1 signed by ISRG Root X2 (pem)
    https://letsencrypt.org/certs/lets-encrypt-e1.pem
(4) "Backup" Let's Encrypt R4 signed by ISRG Root X1 (pem)
    https://letsencrypt.org/certs/lets-encrypt-r4.pem
(5) "Backup" Let's Encrypt R4 cross-signed by IdenTrust (pem)
    https://letsencrypt.org/certs/lets-encrypt-r4-cross-signed.pem
(6) "Backup" Let's Encrypt E2 signed by ISRG Root X2 (pem)
    https://letsencrypt.org/certs/lets-encrypt-e2.pem

Then I ran Microsoft Management Console as admin by running
C:\windows\system32\mmc.exe as admin and opening up 
"File -> 1 Certmgr.msc" in order to add the "snap-in" for
"Certificates" (which I think is needed to import them).

Once I had the snap-in loaded I could go back to certmgr.msc
to right click on "Certificates" and then "All Tasks -> Import"
each of the six Let's Encrypt intermediate certificates above.

I had never used certificates before and since I don't understand them I put those 6 Let's Encrypt intermediate certificates into both sections for
"Personal -> Certificates" & I put them again into the section for 
"Intermediate Certification Authorities -> Certificates" which added
these six Certificates to each of those two sections in "certmgr.msc"
 Issued To: "E1", Issued By: "ISRG Root X2", Expiration Date: "9/15/2025"
 Issued To: "E2", Issued By: "ISRG Root X2", Expiration Date: "9/15/2025"
 Issued To: "R3", Issued By: "ISRG Root X1", Expiration Date: "9/15/2025"
 Issued To: "R3", Issued By: "DST Root CA X3", Expiration Date: "9/29/2021"
 Issued To: "R4", Issued By: "DST Root CA X3", Expiration Date: "9/29/2021"
 Issued To: "R4", Issued By: "ISRG Root X1", Expiration Date: "9/15/2025"

Not knowing if openssl respects the certificates installed into Windows 10
I also copied those six PEM files into the OpenSSL PEM directory.
(1) C:\Program Files\OpenSSL-Win64\bin\PEM\lets-encrypt-r3.pem 
(2) C:\Program Files\OpenSSL-Win64\bin\PEM\lets-encrypt-r3-cross-signed.pem
(3) C:\Program Files\OpenSSL-Win64\bin\PEM\lets-encrypt-e1.pem
(4) C:\Program Files\OpenSSL-Win64\bin\PEM\lets-encrypt-r4.pem
(5) C:\Program Files\OpenSSL-Win64\bin\PEM\lets-encrypt-r4-cross-signed.pem
(6) C:\Program Files\OpenSSL-Win64\bin\PEM\lets-encrypt-e2.pem

Unfortunately none of that seemed to change anything with openssl even
after I replaced the lite openssl tool with the programmer's version
https://slproweb.com/download/Win64OpenSSL-1_1_1k.exe

The command is still unable to get the "local issuer certificate"
(which I don't understand so I may not be asking the right question).

C:\Program Files\OpenSSL-Win64\bin> echo q | openssl s_client -connect news.mixmin.net:563 | openssl x509 -noout -enddate | findstr "notAfter"

    depth=0 CN = news.mixmin.net
    verify error:num=20:unable to get local issuer certificate
    verify return:1
    depth=0 CN = news.mixmin.net
    verify error:num=21:unable to verify the first certificate
    verify return:1
    depth=0 CN = news.mixmin.net
    verify return:1
    notAfter=Jun 23 08:33:08 2021 GMT

I don't yet understand certificates so I'm probably doing something
wrong in the command above but at least the command below works for me.

   openssl s_client -connect news.mixmin.net:563

    CONNECTED(0000019C)
    depth=0 CN = news.mixmin.net
    verify error:num=20:unable to get local issuer certificate
    verify return:1
    depth=0 CN = news.mixmin.net
    verify error:num=21:unable to verify the first certificate
    verify return:1
    depth=0 CN = news.mixmin.net
    verify return:1
    ---
    Certificate chain
     0 s:CN = news.mixmin.net
       i:C = US, O = Let's Encrypt, CN = R3
    ---
    Server certificate
    -----BEGIN CERTIFICATE-----
    MIIFJDCCBAygAwIBAgISBMq/vZ7EGPlRioP9cZZunnsWMA0GCSqGSIb3DQEBCwUA
    MDIxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MQswCQYDVQQD
    EwJSMzAeFw0yMTAzMjUwODMzMDhaFw0yMTA2MjMwODMzMDhaMBoxGDAWBgNVBAMT
    D25ld3MubWl4bWluLm5ldDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
    AMQmhGb/x5nb4BjhyJHsRCi2EDT0lWxqWonZgUX/yY5v4/1VlUYtVEqqiCUCI8Ut
    QEGUkyTONq7/YVnYexeh5iDAD8ojHQ68hpucyyHkcpTUUqkuhxOlGrMZNLAy11IC
    jQvjwxtLrOmJtPqdnow8EW53/YHXHhtGLmZQ188PyBEp0wjiRf25pM5BisPWrBkl
    Fc/QtsCbnBKUj8LH5FWhHpaaIap1/cbE9+Zm+H/6yC3oXquBMdlUUQcJ7bAmZO00
    UmfVjnXnRIzRtY40nf21Ix8dofmgrt+HG9qbU4TYE1VbO3GupbvPXflIxoWKHWdI
    2iYg1tWFNa+gz8w6sviXyYECAwEAAaOCAkowggJGMA4GA1UdDwEB/wQEAwIFoDAd
    BgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDAYDVR0TAQH/BAIwADAdBgNV
    HQ4EFgQURovOeNsM0YWfMNdrnYqgaEMB1bAwHwYDVR0jBBgwFoAUFC6zF7dYVsuu
    UAlA5h+vnYsUwsYwVQYIKwYBBQUHAQEESTBHMCEGCCsGAQUFBzABhhVodHRwOi8v
    cjMuby5sZW5jci5vcmcwIgYIKwYBBQUHMAKGFmh0dHA6Ly9yMy5pLmxlbmNyLm9y
    Zy8wGgYDVR0RBBMwEYIPbmV3cy5taXhtaW4ubmV0MEwGA1UdIARFMEMwCAYGZ4EM
    AQIBMDcGCysGAQQBgt8TAQEBMCgwJgYIKwYBBQUHAgEWGmh0dHA6Ly9jcHMubGV0
    c2VuY3J5cHQub3JnMIIBBAYKKwYBBAHWeQIEAgSB9QSB8gDwAHcAXNxDkv7mq0VE
    sV6a1FbmEDf71fpH3KFzlLJe5vbHDsoAAAF4aLr/EwAABAMASDBGAiEAk+19EAVz
    Uop16K3b3IogurAsXjjeDMI/5WrNQE4nl20CIQD4ybZuHQi6dTRnU8M/iY/DuPmg
    AqJBFXfzEiHtWsmYvwB1APZclC/RdzAiFFQYCDCUVo7jTRMZM7/fDC8gC8xO8WTj
    AAABeGi6/vkAAAQDAEYwRAIgLd/nQroBFqpVBZz1BWGwS1ariuPzvId03LlCYQ2r
    xkECIF7yonzKaSUC69AU/BjfNAzAqPrT02DS3vAALeridiDzMA0GCSqGSIb3DQEB
    CwUAA4IBAQAfs5MN1vdENtlQDm1rttNQo78bBsB8KwBKh4zIqlccy9RhV5LntRxy
    Cw92fQS0emw0lH2U+gjTwdjvVoOI25y2ViuyBoNoGCEn+RpGeGv9VaZDHYh/rkub
    5VTvQnq7qj8aEp3e9vRSs+5X/sqvgAX3obqBfhJVcp8V11mAN9XubmHKFYLnaNJA
    juNLNUbPBO0OxYa9n7qZJi/flpK3l5pMghZtSz97tzbF/kvOGIOPgqylJCVDSCkW
    Oz5TxyxhepaqupOBNPyFM95neOsyJ/7QmyfwPyAi+mydJ0xPK1qAU59jmp52ZedV
    hVRc39+7z/oeA7Ng1vNWamWpkMm/4e0a
    -----END CERTIFICATE-----
    subject=CN = news.mixmin.net
    
    issuer=C = US, O = Let's Encrypt, CN = R3
    
    ---
    No client certificate CA names sent
    Peer signing digest: SHA256
    Peer signature type: RSA-PSS
    Server Temp Key: X25519, 253 bits
    ---
    SSL handshake has read 1945 bytes and written 410 bytes
    Verification error: unable to verify the first certificate
    ---
    New, TLSv1.2, 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: 024614CA7C494D3673E94AB33935CDC2C72932A3D7AC3F2B10930ADDE622FC1C
        Session-ID-ctx:
        Master-Key: 0CD08B398FB3969D478A0F23E65506C51E7D843ABED89155DB5B7235A4CCACB5A4A0A7FF98E65676DF720DD410D100C1
        PSK identity: None
        PSK identity hint: None
        SRP username: None
        TLS session ticket lifetime hint: 7200 (seconds)
        TLS session ticket:
        0000 - 44 9e 74 92 85 fb a1 3e-d2 d7 ba 00 7b 85 5d 9c   D.t....>....{.].
        0010 - 89 29 4d 78 d7 d6 49 d0-fd 3f a6 d1 f7 52 db 7e   .)Mx..I..?...R.~
        0020 - 73 f5 0c 78 37 28 d4 16-59 31 cb df ae 64 0d cf   s..x7(..Y1...d..
        0030 - 0d 69 d6 d2 c0 31 5a 67-b8 5b 56 61 1d 3b 46 75   .i...1Zg.[Va.;Fu
        0040 - ea 26 43 a2 20 4c 13 ac-09 7f da 45 71 57 65 3e   .&C. L.....EqWe>
        0050 - 4f be d6 83 27 99 69 c6-92 03 b1 96 1a 46 71 44   O...'.i......FqD
        0060 - a3 4d 68 04 92 f6 06 22-4f 4d 72 81 fd a4 99 df   .Mh...."OMr.....
        0070 - 04 ac 85 b4 12 a8 50 f2-65 a4 4a 7f bc cf 0a b0   ......P.e.J.....
        0080 - 88 ba f6 1d 7c d2 c4 da-87 31 02 43 b6 fe f2 ec   ....|....1.C....
        0090 - c9 71 74 6c 21 cd 50 19-21 03 4e f2 6d 79 c2 41   .qtl!.P.!.N.my.A
    
        Start Time: 1616996562
        Timeout   : 7200 (sec)
        Verify return code: 21 (unable to verify the first certificate)
        Extended master secret: yes
    ---
    200 news.mixmin.net InterNetNews NNRP server INN 2.7.0 (20200329 prerelease) ready (posting ok)
    quit
    205 Bye!
    closed

I am sorry that I don't understand these things so if someone can help 
explain what is going on with the above reports I'd appreciate the advice.
Technical Details
Message-ID: <s3rs28$ad4$1@gioia.aioe.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
References: <s3j4g2$10qd$1@gioia.aioe.org> <AABgXuwJlygAAAu4.A1.flnews@Server4.micha.freeshell.org>

Show Full Headers
Complete Article Headers
Message-ID: <s3rs28$ad4$1@gioia.aioe.org>
Subject: Re: <mixmin> Steve Crook
Date: Mon, 29 Mar 2021 09:28:25 +0300
From: Scott Lurndal <scott@slp53.sl.home>
References: <s3j4g2$10qd$1@gioia.aioe.org> <AABgXuwJlygAAAu4.A1.flnews@Server4.micha.freeshell.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
Newsgroups: alt.free.newsservers
Organization: UsenetServer - www.usenetserver.com
Lines: 184
Reply-To: slp53@pacbell.net
NNTP-Posting-Host: ZT+2OjYEz2SGxuZg/DWBmA.user.gioia.aioe.org
X-Complaints-To: abuse@aioe.org
X-Notice: Filtered by postfilter v. 0.9.2
X-newsreader: xrn 9.03-beta-14-64bit