🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87488

Re: Draft -00 for modernizing TLS usage with NNTP

#87488
From: Julien ÉLIE
Date: Tue, 26 Jul 2016 20:10
89 lines
4600 bytes
Hi Michael,

>> 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.


>> 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!


> 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


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?


> 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"?

-- 
Julien ÉLIE

« Il était une fois un homme fidèle, c'est une belle histoire. Il
   était une fois une femme fidèle, c'est un conte de fées. »
   (Maurice Jeanneret)

Technical Details
Message-ID: <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
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>

Show Full Headers
Complete Article Headers
Message-ID: <nn8g42$913$1@news.trigofacile.com>
Subject: Re: Draft -00 for modernizing TLS usage with NNTP
Date: Tue, 26 Jul 2016 22:10:53 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
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>
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
Organization: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 26 Jul 2016 20:10:42 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb080103c8006d4cfbcd6cce84bf.ipv6.abo.wanadoo.fr:2a01:cb08:103:c800:6d4c:fbcd:6cce:84bf";
 logging-data="9251"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0)
 Gecko/20100101 Thunderbird/45.2.0
In-Reply-To: <AABXlzwYKRUAABSK.A1.flnews@WStation5.stz-e.de>
X-Received-Bytes: 4490
X-Received-Body-CRC: 2959593124