Article View: news.software.nntp
Article #87875Re: [INN] TLS Signature algorithm selection
From: Michael Bäuerle
Date: Fri, 14 Sep 2018 13:57
Date: Fri, 14 Sep 2018 13:57
57 lines
3645 bytes
3645 bytes
Michael Bäuerle wrote: > Julien ÉLIE wrote: > > Michael Bäuerle wrote: > > > > Michael Bäuerle wrote: > > > > > > > > > > While testing TLSv1.3 from flnews-0.16pre6 via OpenSSL 1.1.1-pre8 to > > > > > INN 2.6.1 the question comes up how INN selects the signature algorithm > > > > > from the list provided by a client. > > > > > > | The supported signature algorithms set by a server are not sent to > > > | the client but are used to determine the set of shared signature > > > | algorithms and (if server preferences are set with > > > | SSL_OP_CIPHER_SERVER_PREFERENCE) their order. > > > > > > Maybe the OpenSSL snapshot used for the test doesn't use the final > > > set of algorithms and ordering yet. Let's see how the final 1.1.1 will > > > behave. > > > > Now that the final 1.1.1 version has been released, is the behaviour better? > > Not tested with 1.1.1 yet. I will post results the next days. The behaviour has not changed. Offered to the server (Client Hello decoded by Wireshark): <https://micha.freeshell.org/tmp/2018-09-14_flnews_TLS1.3_CH.png> The server selects AES256 as symmetric cipher and the highlighted entry from the signature algorithm list (according to the following OpenSSL functions): SSL_get_peer_signature_nid() SSL_get_peer_signature_type_nid() For TLSv1.3 the last 3 entries with PKCS1-v1_5 padding are no longer allowed inside the protocol (only for signatures in certificates). I have tested it with s_client too (in this case ECDSA signature algorithms are offered with highest preference, followed by EdDSA and the RSA-PSS ones). For all three groups the weakest hash algorithm is offered with highest preference. But even in this case the server selects RSA-PSS/SHA256: | | Peer signing digest: SHA256 | Peer signature type: RSA-PSS In general this is not a problem, for AES128 (that I have offered too) RSA-PSS/SHA256 would be a matching choice. But it's a bit strange that OpenSSL chose the strongest symmetric cipher (and a matching ECDHE group for key exchange -- with s_client X25519 is used, but when I additionally offer X448 with flnews, X448 is chosen by the server) together with the weakest hash algorithm for signatures.
Technical Details
Message-ID:
<AABbm75QJfsAABL8.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-mailReferences:
<AABbZFbxOtIAAB1o.A1.flnews@WStation5.stz-e.de> <plro32$rqu$1@news.trigofacile.com> <AABbgXZ+F0gAAAui.A1.flnews@Server4.micha.freeshell.org> <pn97f4$s98$1@news.trigofacile.com> <AABbmCrvGZsAAAzN.A1.flnews@Server4.micha.freeshell.org>Show Full Headers
Complete Article Headers
Message-ID: <AABbm75QJfsAABL8.A1.flnews@WStation5.stz-e.de> Subject: Re: [INN] TLS Signature algorithm selection Date: Fri, 14 Sep 2018 13:57:36 +0000 From: Michael Bäuerle <michael.baeuerle@stz-e.de> References: <AABbZFbxOtIAAB1o.A1.flnews@WStation5.stz-e.de> <plro32$rqu$1@news.trigofacile.com> <AABbgXZ+F0gAAAui.A1.flnews@Server4.micha.freeshell.org> <pn97f4$s98$1@news.trigofacile.com> <AABbmCrvGZsAAAzN.A1.flnews@Server4.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-mail Newsgroups: news.software.nntp Organization: Wieslauf BBS 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 Injection-Date: Fri, 14 Sep 2018 13:57:36 -0000 Injection-Info: wieslauf.sub.de; logging-data="29984"; mail-complaints-to="usenet@wieslauf.sub.de" User-Agent: flnews/0.16pre13 (for NetBSD) Cancel-Lock: sha1:sBxlyQLXB2Os4tp+s4rLIXz2wVE= sha256:3EfsKmupGVLKtlXAzj6R5pgSPPW+RjL65Dvl+C8x0fY= sha256:jghJeM+Pq+Oj08Dj8PHTMvi7GsGNnZhPPHm4J2wFwmg= sha1:rlAs3NEJ4YyjSDsjXJjABgGHVNc= X-Received-Bytes: 3494 X-Received-Body-CRC: 612906524