🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87879

Re: [INN] TLS Signature algorithm selection

#87879
From: Julien ÉLIE
Date: Sun, 28 Oct 2018 21:11
43 lines
2962 bytes
Hi Michael,

> 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.
> 
> flnews behaves like (first one preferred):
> |
> | $ openssl s_client -sigalgs "RSA-PSS+SHA512:RSA-PSS+SHA384:RSA-PSS+SHA256"

Just to be sure, is the behaviour similar when you use TLSv1.3 signature 
scheme names?  (rsa_pss_pss_sha256 and rsa_pss_pss_sha512)
Maybe it is treated differently (but that would be a bug; note that 
RSA-PSS is not mentioned in SSL_CONF_cmd man page):

https://www.openssl.org/docs/man1.1.1/man3/SSL_CONF_cmd.html

"The value argument should be a colon separated list of signature 
algorithms in order of decreasing preference of the form algorithm+hash 
or signature_scheme. algorithm is one of RSA, DSA or ECDSA and hash is a 
supported algorithm OID short name such as SHA1, SHA224, SHA256, SHA384 
of SHA512. Note: algorithm and hash names are case sensitive. 
signature_scheme is one of the signature schemes defined in TLSv1.3, 
specified using the IETF name, e.g., ecdsa_secp256r1_sha256, ed25519, or 
rsa_pss_pss_sha256."


https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_set1_sigalgs.html

"The short or long name values for digests can be used in a string (for 
example "MD5", "SHA1", "SHA224", "SHA256", "SHA384", "SHA512") and the 
public key algorithm strings "RSA", "RSA-PSS", "DSA" or "ECDSA".

The TLS 1.3 signature scheme names (such as "rsa_pss_pss_sha256") can 
also be used with the _list forms of the API."

-- 
Julien ÉLIE

« Donner un César à une tragédienne ? Mais c'est absurde ! »
   (Astérix)

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

Show Full Headers
Complete Article Headers
Message-ID: <pr58lj$ohh$1@news.trigofacile.com>
Subject: Re: [INN] TLS Signature algorithm selection
Date: Sun, 28 Oct 2018 22:11:09 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <AABbZFbxOtIAAB1o.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=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 28 Oct 2018 21:11:15 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb0800a77500284b7f7c770cf2b2.ipv6.abo.wanadoo.fr:2a01:cb08:a7:7500:284b:7f7c:770c:f2b2";
 logging-data="25137"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0)
 Gecko/20100101 Thunderbird/52.9.1
In-Reply-To: <AABbZFbxOtIAAB1o.A1.flnews@WStation5.stz-e.de>
Content-Language: fr
X-Received-Bytes: 2886
X-Received-Body-CRC: 3600132340