Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1326389 - GnuTLS server does not accept SHA-384 and SHA-512 Certificate Verify signatures despite advertising support for them
GnuTLS server does not accept SHA-384 and SHA-512 Certificate Verify signatur...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gnutls (Show other bugs)
6.8
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Nikos Mavrogiannopoulos
Hubert Kario
: Rebase, Reopened
Depends On:
Blocks: 1343211 1339222
  Show dependency treegraph
 
Reported: 2016-04-12 10:58 EDT by Hubert Kario
Modified: 2017-03-21 05:03 EDT (History)
1 user (show)

See Also:
Fixed In Version: gnutls-2.12.23-1.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-03-21 05:03:24 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
packet capture for connections with different signatures (24.96 KB, application/octet-stream)
2016-04-12 10:58 EDT, Hubert Kario
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:0574 normal SHIPPED_LIVE Moderate: gnutls security, bug fix, and enhancement update 2017-03-21 08:23:04 EDT

  None (edit)
Description Hubert Kario 2016-04-12 10:58:41 EDT
Created attachment 1146506 [details]
packet capture for connections with different signatures

Description of problem:
When using GnuTLS server with client certificates and a client that prefers strong hashes like SHA-512 or SHA-384 will be rejected by server, even though the server advertises support for SHA-384 and SHA-512 in Certificate Request.

Version-Release number of selected component (if applicable):
gnutls-2.8.5-19.el6_7.x86_64

How reproducible:
always

Steps to Reproduce:
1. start gnutls server with client certificates
2. connect to it with restrictive client
3.

Actual results:
Alert(fatal, handshake_failure)

Expected results:
successful connection

Additional info:
Comment 1 Hubert Kario 2016-04-12 13:27:28 EDT
Steps to Reproduce:
1. git clone https://github.com/tomato42/tlsfuzzer.git
2. pushd tlsfuzzer
3. git clone https://github.com/warner/python-ecdsa .python-ecdsa
4. ln -s .python-ecdsa/ecdsa ecdsa
5. git clone https://github.com/tomato42/tlslite-ng.git .tlslite-ng
6. ln -s .tlslite-ng/tlslite tlslite
7. popd
8. tar xzf certificates.tar.gz
9. gnutls-serv --priority NORMAL:+VERS-TLS1.2 --port 4433 --http --x509cafile ca/cert.pem --x509keyfile server/key.pem --x509certfile server/cert.pem
(in other console, same directory)
10. PYTHONPATH=tlsfuzzer python tlsfuzzer/scripts/test-rsa-sigs-on-certificate-verify.py -k client/key.pem -c client/cert.pem

certificates.tar.gz are attachment 1146558 [details]
Comment 2 Nikos Mavrogiannopoulos 2016-05-26 03:46:32 EDT
This is a limitation of that code base; similarly with:
https://bugzilla.redhat.com/show_bug.cgi?id=1328205#c1

Will not be addressed.
Comment 3 RHEL Product and Program Management 2016-05-26 04:25:58 EDT
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.
Comment 4 Hubert Kario 2016-05-26 06:22:36 EDT
there are two solutions to the problem, either implementing support for other hashes or not advertising support for hashes that are not supported. Leaving code as is makes it RFC non compliant.
Comment 5 Nikos Mavrogiannopoulos 2016-05-26 07:27:01 EDT
Of course there are solutions, but they have to be put in perspective. The plan is to address critical TLS 1.2 issues that will affect our use-case, rsyslog. Not to rewrite the best TLS 1.2 implementation out there based on legacy code.
Comment 6 Nikos Mavrogiannopoulos 2016-05-27 09:55:35 EDT
Re-opening as this can be addressed by the server not advertising unsupported hashes on certificate request.
Comment 8 Nikos Mavrogiannopoulos 2016-08-09 08:17:25 EDT
I'm unable to use the reproducer for testing this request. I've verified manually on the 2.12.x rebase, using tcpdump, that the only hashes advertised on a certificate request are the sha1 and sha256 hashes.
Comment 9 Hubert Kario 2016-08-22 10:11:11 EDT
yes, I will need to write a new test to expect reply with just two hashes
Comment 13 errata-xmlrpc 2017-03-21 05:03:24 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2017-0574.html

Note You need to log in before you can comment on or make changes to this bug.