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.

Bug 1973292

Summary: OpenSSL doesn't automatically select DH parameters for DHE-PSK ciphersuites
Product: Red Hat Enterprise Linux 9 Reporter: Alicja Kario <hkario>
Component: opensslAssignee: Dmitry Belyavskiy <dbelyavs>
Status: CLOSED ERRATA QA Contact: Alicja Kario <hkario>
Severity: low Docs Contact:
Priority: low    
Version: 9.0CC: dbelyavs
Target Milestone: betaKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
Cause: PSK ciphersuites don't work on system set up to FUTURE crypto policy. This is caused by OpenSSL SECLEVEL=3 disabling key exchange methods other than plain DHE or ECDHE. Consequence: Connections attempts that use PSK, DHE-PSK, or ECDHE-PSK ciphersuites fail on a system set-up with FUTURE crypto-policy Workaround (if any): Switch the system to any other crypto-policy or explicitly set lower SECLEVEL in openssl cipherstring. Result: PSK ciphersuites don't work with FUTURE crypto-policy.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 15:36:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2035249    
Bug Blocks:    

Description Alicja Kario 2021-06-17 15:06:33 UTC
Description of problem:
When using OpenSSL with TLS_DHE_PSK_* ciphers, openssl server aborts with "dh key too small"

Version-Release number of selected component (if applicable):
openssl-3.0.0-0.alpha16.3.ssl3.x86_64

How reproducible:
always

Steps to Reproduce:
1. openssl s_server -cipher DHE-PSK-AES128-CCM -nocert -psk 0102030405 -www
2. openssl s_client -cipher DHE-PSK-AES128-CCM -psk 0102030405 -no_tls1_3

Actual results:
40E79145717F0000:error:0A00018A:SSL routines:tls_construct_server_key_exchange:dh key too small:ssl/statem/statem_srvr.c:2480:

Expected results:
Successful connection

Additional info:
OpenSSL seems to default to 1024 bit parameters for this connection (when I use -cipher @SECLEVEL=0:DHE-PSK-AES128-CCM it sends a SKE that's 265 bytes long)

Comment 3 Dmitry Belyavskiy 2021-12-08 11:58:57 UTC
Works for me now.

Comment 13 Dmitry Belyavskiy 2022-03-02 15:20:41 UTC
remnants gone to https://bugzilla.redhat.com/show_bug.cgi?id=2060044

Comment 16 errata-xmlrpc 2022-05-17 15:36:30 UTC
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