Article View: news.software.nntp
Article #87500Re: Draft -00 for modernizing TLS usage with NNTP
From: Michael Bäuerle
Date: Sat, 30 Jul 2016 11:25
Date: Sat, 30 Jul 2016 11:25
108 lines
5491 bytes
5491 bytes
Julien ÉLIE wrote:
> Michael Bäuerle wrote:
> > Julien ÉLIE wrote:
> > >
> > > Maybe I should also add "signature algorithms and elliptic curves to
> > > accept"?
> >
> > For certificate based authentication there are more things to check.
>
> Isn't RFC 7525 enough for that? My proposed draft explicitly includes
> it (at the beginning of Section 2):
>
> The best current practices documented in the "Recommendations for
> Secure Use of TLS and DTLS" [RFC7525] are included here by reference.
> Instead of repeating those recommendations here, this document mostly
> provides supplementary information regarding secure implementation
> and deployment of NNTP technologies.
I had read your quoted section, but not read RFC7525 before posting
my article. Sorry for being not careful enough here.
> Let's check below that your checks are all mentioned in RFC 7525.
>
>
> > If the key in a certificate is too weak, the connection is rejected.
> > The threshold (currently 1024 bit) should become a config parameter
> > too.
>
> It is level 1 of SSL_CTX_set_security_level() you mentioned in another
> message. Thanks for that pointer too!
>
> Section 4.1 "General Guidelines":
>
> o Implementations SHOULD NOT negotiate cipher suites that use
> algorithms offering less than 128 bits of security.
>
> Looks like it SHOULD be level 3 then (3072 bits). I doubt many
> implementations already enforce that strength.
Yes, very few certificates use RSA keys stronger than 2048 bit.
The same is true for DH parameters (or even weaker). I have asked
Individual.net for stronger parameters and the answer was that many
client implementations used by their customers cannot handle >1024 bits,
and they don't want to create interoperability problems.
RFC7525 says in 4.4:
|
| With a key exchange based on modular exponential (MODP) Diffie-
| Hellman groups ("DHE" cipher suites), DH key lengths of at least 2048
| bits are RECOMMENDED.
The NIST [1] and the OpenSSL documentation consider 3072 bits for RSA
keys and DH groups as roughly equivalent strong compared to a symmetric
cipher that provides "128 bits of security".
Because anybody use at least AES128 today, I have set the warning
threshold to 3072 bit for both.
> [Section 6.1 "Host Name Validation"]
>
> > Revocation checks are the most annoying thing.
> > But for individual.net it works fine (and fast, because the CRLs are
> > small and downloaded in less than a second)
>
> Delt with Section 6.5 "Certificate Revocation":
>
> o Although Certificate Revocation Lists (CRLs) are the most widely
> supported mechanism for distributing revocation information, they
> have known scaling challenges that limit their usefulness (despite
> workarounds such as partitioned CRLs and delta CRLs).
>
> Yeah, like you noted :)
Some CAs seem to offer a CRL only as alibi - but really wants you to
*not* use them. The CRL from CAcert is about 7 Mbyte large and they
limit the transfer rate on the server so that the download takes 15
minutes or more (the server seems to be never faster, so I assume this
is an artificial transfer rate limit).
I have added an optional pop-up window to flnews for this case. It
asks:
|
| TLS certificate revocation list (CRL)
| update interval elapsed. Update now?
The options are "OK" and "Skip". If old CRLs are present and not expired
yet, the revocation checks should pass for both.
> > CRL handling on-the-fly is ugly with OpenSSL. Simply continue here would
> > use the old CRLs.
>
> Do you know whether they improved that in 1.1.0? (Did you try to ask
> in the openssl-users mailing-list how to do that cleanly? otherwise,
> to plan to improve that in a future version?)
Not yet. My revocation check implementation is still in experimental
state and completely disabled in the default configuration.
Currently I'm pleased if it works at all. As I have written, OpenSSL
1.0.2h is broken. But I have read on the mailing list that the bug is
already fixed in the repository.
__________________
[1] <https://www.keylength.com/en/4/>
Technical Details
Message-ID:
<AABXnI6riGAAAAb4.A1.flnews@WStation1.micha.freeshell.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mailReferences:
<nn0m6t$j5k$1@news.trigofacile.com> <AABXlKRk3K0AAAnJ.A1.flnews@Server4.micha.freeshell.org> <nn5rfs$as7$1@news.trigofacile.com> <AABXlzwYKRUAABSK.A1.flnews@WStation5.stz-e.de> <nn8g42$913$1@news.trigofacile.com> <AABXmI8tX18AAC+v.A1.flnews@WStation5.stz-e.de> <nngc8o$vij$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <AABXnI6riGAAAAb4.A1.flnews@WStation1.micha.freeshell.org> Subject: Re: Draft -00 for modernizing TLS usage with NNTP Date: Sat, 30 Jul 2016 11:25:31 -0000 From: Michael Bäuerle <michael.baeuerle@gmx.net> References: <nn0m6t$j5k$1@news.trigofacile.com> <AABXlKRk3K0AAAnJ.A1.flnews@Server4.micha.freeshell.org> <nn5rfs$as7$1@news.trigofacile.com> <AABXlzwYKRUAABSK.A1.flnews@WStation5.stz-e.de> <nn8g42$913$1@news.trigofacile.com> <AABXmI8tX18AAC+v.A1.flnews@WStation5.stz-e.de> <nngc8o$vij$1@news.trigofacile.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Lines: 106 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=fixed Content-Transfer-Encoding: 8bit X-Trace: individual.net bixfezhFYYMdmVj82HjKvAFr1lC/P2I4Pl94KX/JuON4vMLqpG X-Orig-Path: not-for-mail Cancel-Lock: sha1:S+dOSyKlIshlCbcsKXjWmL+3swA= sha1:50kP0tWXdZZul2+DVBnhSLWEQDQ= Injection-Date: Sat, 30 Jul 2016 11:25:31 -0000 User-Agent: flnews/0.14pre47 (for GNU/Linux) X-Received-Bytes: 5379 X-Received-Body-CRC: 2413658681