Article View: news.software.nntp
Article #87834Re: [INN] TLS Signature algorithm selection
From: Michael Bäuerle
Date: Sat, 25 Aug 2018 15:32
Date: Sat, 25 Aug 2018 15:32
46 lines
2898 bytes
2898 bytes
Julien ÉLIE 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 only action INN does is setting the following option: > SSL_CTX_set_options(CTX, SSL_OP_CIPHER_SERVER_PREFERENCE); > > > > flnews behaves like (first one preferred): > > | > > | $ openssl s_client -sigalgs "RSA-PSS+SHA512:RSA-PSS+SHA384:RSA-PSS+SHA256" > > > > but INN (with "tlspreferserverciphers" default) seems to always select > > the weakest one (SHA256 based), even for AES256 and ChaCha20 based > > ciphersuites. > > I'm afraid I don't know why the weakest algorithm is selected. At > least INN does not enforce that choice. > > Note that if "tlsciphers" is unset in inn.conf, the OpenSSL's default > cipher suite list is used. I hope SHA256 is not at the beginning! First I thought about whether SSL_OP_CIPHER_SERVER_PREFERENCE really covers the signature algorithm negotiation too (and not only the cipher suite negotiation), because the documentation of SSL_CTX_set_options() [1] doesn't explicitly state that. But in [2] it is stated in the NOTES section: | | 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. ____________ [1] <https://www.openssl.org/docs/manmaster/man3/SSL_CTX_set_options.html> [2] <https://www.openssl.org/docs/manmaster/man3/SSL_CTX_set1_sigalgs.html>
Technical Details
Message-ID:
<AABbgXZ+F0gAAAui.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-mailReferences:
<AABbZFbxOtIAAB1o.A1.flnews@WStation5.stz-e.de> <plro32$rqu$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <AABbgXZ+F0gAAAui.A1.flnews@Server4.micha.freeshell.org> Subject: Re: [INN] TLS Signature algorithm selection Date: Sat, 25 Aug 2018 15:32:14 -0000 From: Michael Bäuerle <michael.baeuerle@gmx.net> References: <AABbZFbxOtIAAB1o.A1.flnews@WStation5.stz-e.de> <plro32$rqu$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: 44 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=fixed Content-Transfer-Encoding: 8bit X-Trace: individual.net SUzbssbCSj4YjmoX9O8L2AnwuTRPkGsPxUm3QT48rWI2oGbwgb X-Orig-Path: not-for-mail Cancel-Lock: sha256:lQJb6IN0e14lwnLd+ucyS5G9km1wX44tp1ETKKQqdnM= sha1:6UwnkLv7E8ypSOPMi83YGBm+DZs= Injection-Date: Sat, 25 Aug 2018 15:32:14 -0000 User-Agent: flnews/0.15 (for HP-UX) X-Received-Bytes: 2789 X-Received-Body-CRC: 1041909627