Article View: alt.free.newsservers
Article #160894Re: Question for Steve Crook as to how people can post to Mixmin using 563 on iOS
From: Michael Baeuerle
Date: Sat, 26 Sep 2015 09:12
Date: Sat, 26 Sep 2015 09:12
79 lines
4223 bytes
4223 bytes
Winston_Smith wrote:
> On Fri, 25 Sep 2015 11:07:38 +0000, Michael Baeuerle wrote:
> >
> > In this case there is no problem with MD5 because it is only used for
> > the self signature of the root certificate.
>
> I understood your final point, which was that the certificates that
> matter should work for NewsTap on iOS for the mixmin server because
> iOS should trust the SHA-signed certificate.
To make that clear:
Of course iOS need to trust the root certificate too, but the root
certificate is normally trusted simply because it is there (not because
it has a valid signature generated with its own key).
> However, I don't at all understand how you *know* which certificate
> is which (but I don't understand this stuff well enough to figure
> that out on my own).
OpenSSL shows a list of the whole chain, see below.
> What bothers me is that when I run the suggested Linux commands,
> the md5 signature never even shows up. Why not?
>
> $ openssl s_client -connect news.mixmin.net:563 >& mixmin.path
Look at the generated file "mixmin.path" and you will see this:
|
| ---
| 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
| 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
| ---
This is the whole chain and you can see:
- That it contains 2 certificates
- That certificate 0 is the server certificate
s(ubject) is news.mixmin.net and i(ssuer) is CAcert
- That certificate 1 is a root certificate
Because it is self signed (issuer and subject are both CAcert)
| Server certificate
| -----BEGIN CERTIFICATE-----
| [...]
| -----END CERTIFICATE-----
| subject=/CN=news.mixmin.net
| issuer=/O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
| ---
This is the server certificate (number 0 in chain above). By default
OpenSSL only prints the first certificate of the chain and this is the
reason why you can't extract the MD5 signature from this data.
If you want to print all certificates, you must add the option
"-showcerts" like this:
|
| $ openssl s_client -connect news.mixmin.net:563 -showcerts >& mixmin.path
^^^^^^^^^^
To decode the certificates you need to cut them out from the content
printed by command above.
> $ openssl x509 -in mixmin.path -noout -text >& mixmin.pem
This is wrong, because you should not feed all this data into the
"x509" tool. What it expect as input in the file specified by the "-in"
parameter is a certificate in PEM format that looks like this:
|
| -----BEGIN CERTIFICATE-----
| [Base64 encoded data]
| -----END CERTIFICATE-----
There should be no other data before and after it. I have used simple
Cut&Paste into a text editor for this purpose.
If you do this with the root certificate (number 1 in chain) you will
see the MD5 based (self) signature.
Technical Details
Message-ID:
<AABWBlkx2XQAAAMT.A1.flnews@WStation1.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-mailReferences:
<mu317k$5fr$3@news.mixmin.net> <mu346u$ik8$1@news.mixmin.net> <mu354m$ik8$2@news.mixmin.net> <AABWBSYnEKoAAAyw.A1.flnews@WStation3.stz-e.de> <mu5eii$ekc$1@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <AABWBlkx2XQAAAMT.A1.flnews@WStation1.micha.freeshell.org> Subject: Re: Question for Steve Crook as to how people can post to Mixmin using 563 on iOS Date: Sat, 26 Sep 2015 09:12:08 +0000 From: Michael Baeuerle <michael.baeuerle@gmx.net> References: <mu317k$5fr$3@news.mixmin.net> <mu346u$ik8$1@news.mixmin.net> <mu354m$ik8$2@news.mixmin.net> <AABWBSYnEKoAAAyw.A1.flnews@WStation3.stz-e.de> <mu5eii$ekc$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!news.usenet.farm!..!..!not-for-mail Newsgroups: alt.free.newsservers Lines: 79 Mime-Version: 1.0 X-Trace: individual.net bHTogmVa2fqK3daEXoSJxQREMvanWLPhF1hwOpJq/9DJTzZuQe X-Orig-Path: not-for-mail Cancel-Lock: sha1:tNRXIj76m5hKNKNwiSSnyPmCHDI= sha1:I2D+ZavTXNbaBpUuRGW9OvfIVOQ= Injection-Date: 26 Sep 2015 09:12:08 -0000 User-Agent: flnews/0.11pre55 (for GNU/Linux) X-Received-Bytes: 4040 X-Received-Body-CRC: 3141433055