Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
When openssl client attempts connection to a server that signs ServerKeyExchange with a SHA-1 signature the connection is aborted.
Version-Release number of selected component (if applicable):
openssl-3.0.1-15.el9_0.1.x86_64
crypto-policies-20220223-1.git5203b41.el9.noarch
How reproducible:
always
Steps to Reproduce:
0. update-crypto-policies --set LEGACY
1. openssl req -x509 -newkey rsa -keyout localhost.key -out localhost.crt -subj /CN=localhost -nodes -batch
2. openssl s_server -key localhost.key -cert localhost.crt -www -sigalgs RSA+SHA1 &
3. openssl s_client -CAfile localhost.crt -tls1_2
Actual results:
004C18EF217F0000:error:0A000410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:ssl/record/rec_layer_s3.c:1584:SSL alert number 40
002C61808C7F0000:error:0A000172:SSL routines:tls12_check_peer_sigalg:wrong signature type:ssl/t1_lib.c:1575:
Expected results:
successful connection
Additional info:
The client does sent RSA+SHA1 in ClientHello, but upon receiving SKE with RSA+SHA1 aborts the connection with hanshake_failure alert.
At the same time connections from gnutls:
gnutls-cli --priority '@SYSTEM:-VERS-TLS1.3' --insecure localhost:4433
do work and negotiate SHA-1 in SKE as expected:
- Description: (TLS1.2-X.509)-(ECDHE-X25519)-(RSA-SHA1)-(AES-256-GCM)
Browsers and the HTTP is not the only user of certificates. There may be uses with protocols that browsers don't support.
Private PKIs are also much less likely to be included in telemetry, as such users are more likely to disable telemetry.
So, given that our message is that "We support SHA-1 signatures in LEGACY", I'm afraid that yes, we need sha-1 in certificates working in LEGACY.
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 (new packages: openssl), 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://access.redhat.com/errata/RHBA-2022:3900