🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87491

Re: Draft -00 for modernizing TLS usage with NNTP

#87491
From: Michael Bäuerle
Date: Wed, 27 Jul 2016 08:55
109 lines
5801 bytes
Julien ÉLIE wrote:
> Michael Bäuerle wrote:
> > Julien ÉLIE wrote:
> > > 
> > > NNTP implementations of news servers are encouraged to support options
> > > to configure the minimal TLS protocol version to accept, and the cipher
> > > suites to accept.  Additional options can naturally also be supported.
> > > The goal is to enable administrators of news servers to easily and
> > > quickly strengthen security, if need be (for instance by rejecting
> > > cipher suites considered unsafe with regards to local policy).  News
> > > clients may also support similar options, either configurable by the
> > > user or enforced by the news reader.
> > > 
> > > Any better suggestion?
> > 
> > Is it intended to not use the defined capitalized keywords?
> > ("SHOULD support options" / "MAY also support similar options")
> 
> I did not use capitalized keywords because I thought of it as a 
> recommendation (whence "are encouraged to" in the first sentence).  I 
> don't think an NNTP implementation should be considered non-RFC 
> compliant regarding the use of TLS with NNTP because it just does not 
> support such options.

OK, I wondered because strictly speaking only ignoring "MUST" and
"MUST NOT" makes an implementation non-compliant.

> > > Sure a server cannot choose an unoffered cipher suite.  The server can
> > > however decide not to use the first cipher suite it knows in the
> > > client's preferences.  It may as well choose another one.
> > > I am speaking of the SSL_OP_CIPHER_SERVER_PREFERENCE option in OpenSSL.
> > > By default, INN does that (server's preferences are used).
> > 
> > Is the behaviour the same for the "signature algorithms" extension [1]?
> 
> It seems so, according to:
>     https://www.openssl.org/docs/manmaster/ssl/SSL_CONF_cmd.html
> 
> -serverpref
> Use server and not client preference order when determining which 
> cipher suite, signature algorithm or elliptic curve to use for an 
> incoming connection.  Equivalent to SSL_OP_CIPHER_SERVER_PREFERENCE. 
> Only used by servers.
> 
> 
> > The OpenSSL documentation [2] say:
> > |
> > | If this option is not set then all signature algorithms supported by
> > | the OpenSSL library are permissible.
> > 
> > Looking at the values defined by [1] it seems like that this can be
> > as weak as XXX+MD5 (weaker than for TLSv1.0), if OpenSSL is compiled to
> > support MD5.
> 
> In that case, I hope OpenSSL is smart enough not to put MD5 at the top 
> of its preferences!

Yes, that is very likely not the case.

> > flnews currently only disables SSL according to RFC6176 and RFC7568
> > with:
> > |
> > | SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3
> > 
> > Maybe I should simply add "SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1" and drop
> > support for OpenSSL 1.0.0 and 1.0.1. The support for 1.0.1 ends in
> > December anyway.
> 
> No need to drop support for OpenSSL 1.0.0 and 1.0.1.
> You can do:
> 
> #ifdef SSL_OP_NO_TLSv1_1
>   SSL_CTX_set_options(CTX, SSL_OP_NO_TLSv1_1);
> #endif

This requires recompilation and IMHO may create potential ABI problems
with binary packages and OpenSSL shared libraries (currently it should
work with the 1.0.0 shared libraries).

> Anyway, are you sure you want to unconditionally allow only TLS 1.2? 
> Wouldn't it cause interoperability issues with a few (old) news servers?

What I want to drop is not the support for old protocols, but the old
OpenSSL 1.0 API/ABI (using the 1.1 subset already supported by 1.0.2
instead).

You use the words "easily and quickly", changing the configuration
should really be possible at runtime without recompiling.

The configuration for the supported protocols is not the only problem.
For the configuration of the signature algorithms it is the same:
Compile to not configure them at all or require OpenSSL 1.0.2.
Another problem are FFDHE groups. They can't be negotiated in TLS up
to 1.2, but flnews can check that the servers choice is at least 1024
bits large ... but again only with OpenSSL 1.0.2.

> > Now both things are defined the same way ("protocol version to accept"
> > and "cipher suites to accept"). Looks more consistent.
> 
> Maybe I should also add "signature algorithms and elliptic curves to 
> accept"?

TLSv1.3 seems to change things a bit because FFDHE groups can now be
negotiated too (codes starting at 256):
<https://tools.ietf.org/html/draft-ietf-tls-tls13-14#section-4.2.3>

Maybe use the words "signature algorithms" and "(EC)DHE groups"?

Technical Details
Message-ID: <AABXmHcBFuEAAAtw.A1.flnews@WStation5.stz-e.de>
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
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>

Show Full Headers
Complete Article Headers
Message-ID: <AABXmHcBFuEAAAtw.A1.flnews@WStation5.stz-e.de>
Subject: Re: Draft -00 for modernizing TLS usage with NNTP
Date: Wed, 27 Jul 2016 10:55:29 +0200
From: Michael Bäuerle <michael.baeuerle@stz-e.de>
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>
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: 107
Reply-To: Michael Bäuerle <michael.baeuerle@gmx.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net JlIfOzfloBOjH0rvl+RF4w4SnuDsiNzADb2LrFG7ciwdk8V/9I
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:uIZDNJ69byR4dNRR4lsKMnIP+Y0= sha1:Qm8KpaK1U0HbUTyw6rrjE0liQPk=
Injection-Date: Wed, 27 Jul 2016 08:55:29 -0000
User-Agent: flnews/0.14pre47 (for NetBSD)
X-Received-Bytes: 5612
X-Received-Body-CRC: 1382453638