🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.free.newsservers
Article #160707

Re: Question for network gurus on how to set up mixmin SSL certificates for NewsTap on iOS

#160707
From: Michael Baeuerle
Date: Tue, 22 Sep 2015 08:22
96 lines
6075 bytes
Mike Easter wrote:
> Mike Easter wrote:
> > Winston_Smith wrote:
> > > 
> > > If I understood networking better, I could solve this problem on my
> > > own, but, I'm asking for help with the networking part of SSL
> > > certificates.
> > 
> > I can tell you a tiny little bit, but not enough.
> > 
> > Here's how I can see aioe's certificate with the terminal:
> > 
> > openssl s_client -connect news.aioe.org:563
> > 
> > That will give you a lot including Server certificate begin certificate
> > end certificate.
> 
> You can also see mixmin's x.509 certificate in the form of a cert.pem 
> file at mixmin  http://mixmin.net/
> 
> If you open that file with a text viewer, it has the shape of the begin 
> certificate end certificate of aioe seen with the above openssl command.
> 
> If you open that file with the linux 'view file' utility (R click), it 
> handles the .pem as a .pem certificate file giving many many details 
> besides the begin/end certificate.  However, you can't load the .pem 
> because it isn't coming /from/ a CA certificating authority.

Yes. Instead, the root certificate from CAcert (the CA that signed the
Mixmin certificate) must be imported.

In the case of Mixmin, the server presents the whole certificate chain
including the root certificate (Note: this is not always the case).
Therefore you can extract the root certificate from there like this:
------------------------------------------------------------------------
$ openssl s_client -connect news.mixmin.net:563 -showcerts
                                                ^^^^^^^^^^
[This option prints all certificates]
[...]
---
Certificate chain
 0 s:/CN=news.mixmin.net
   i:/O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
-----BEGIN CERTIFICATE-----
[Server certificate]
-----END CERTIFICATE-----
 1 s:/O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
   i:/O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
-----BEGIN CERTIFICATE-----
MIIHPTCCBSWgAwIBAgIBADANBgkqhkiG9w0BAQQFADB5MRAwDgYDVQ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tsYIqQ+T
SCX8Ev2fQtzzxD72V7DX3WnRBnc0CkvSyqD/HMaMyRa+xMwyN2hzXwj7UfdJUzYF
CpUCTPJ5GhD22Dp1nPMd8aINcGeGG7MW9S/lpOt5hvk9C8JzC6WZrG/8Z7jlLwum
GCSNe9FINSkYQKyTYOGWhlC0elnYjyELn8+CkcY7v2vcB5G5l1YjqrZslMZIBjzk
zk6q5PYvCdxTby78dOs6Y5nCpqyJvKeyRKANihDjbPIky/qbn3BHLt4Ui9SyIAmW
omTxJBzcoTWcFbLUvFUufQb1nA5V9FrWk9p2rSVzTMVD
-----END CERTIFICATE-----
[...]
------------------------------------------------------------------------

The root certificate to import is the second one (if you trust CAcert).


[Xpost & Fup2 set to alt.free.newsservers]
Technical Details
Message-ID: <AABWAQ3AUUwAAAor.A1.flnews@WStation3.stz-e.de>
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: <mtppat$2c8$1@news.mixmin.net> <d6b968F82htU2@mid.individual.net> <mtq07u$ghs$1@news.mixmin.net> <d6bg5mF9o52U1@mid.individual.net> <d6bh90Fa02iU1@mid.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <AABWAQ3AUUwAAAor.A1.flnews@WStation3.stz-e.de>
Subject: Re: Question for network gurus on how to set up mixmin SSL certificates for NewsTap on iOS
Date: Tue, 22 Sep 2015 08:22:11 +0000
From: Michael Baeuerle <michael.baeuerle@stz-e.de>
References: <mtppat$2c8$1@news.mixmin.net> <d6b968F82htU2@mid.individual.net> <mtq07u$ghs$1@news.mixmin.net> <d6bg5mF9o52U1@mid.individual.net> <d6bh90Fa02iU1@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
Newsgroups: alt.free.newsservers,alt.os.linux
Followup-To: alt.free.newsservers
Lines: 96
Reply-To: Michael Baeuerle <michael.baeuerle@gmx.net>
Mime-Version: 1.0
X-Trace: individual.net S8XScHjmt1PoVNpPXUs7owcblm5jol9TOEZ/0r3cVgvv2px96D
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:0KIEqgSTKoa064GjzFE9fp4vrT8= sha1:MJGslcaTaTGghOmlQfBlATUTYig=
Injection-Date: 22 Sep 2015 08:22:11 -0000
User-Agent: flnews/0.11pre54 (for GNU/Linux)
X-Received-Bytes: 5915
X-Received-Body-CRC: 3394386636