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 1057687 - Custom/big DH parameters not supported
Summary: Custom/big DH parameters not supported
Keywords:
Status: CLOSED DUPLICATE of bug 1071292
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: httpd
Version: 7.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: ---
Assignee: Luboš Uhliarik
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On: 1057656 1064878 1071883
Blocks: 1073078 1073081 1180223
TreeView+ depends on / blocked
 
Reported: 2014-01-24 15:35 UTC by Hubert Kario
Modified: 2021-01-14 09:32 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of: 1057656
: 1064878 (view as bug list)
Environment:
Last Closed: 2014-03-06 11:53:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1071292 0 urgent CLOSED Can't start httpd in FIPS mode with mod_ssl installed 2021-02-22 00:41:40 UTC

Internal Links: 1071292

Description Hubert Kario 2014-01-24 15:35:38 UTC
Description of problem:
When using DHE based cipher suites, the offered DH parameters by mod_ssl are always 1024 bit sized, even if the certificate used is 2048 bit.
This makes httpd not compliant with NIST SP 800-131A when DHE cipher suite is negotiated since 1st of January this year.

Version-Release number of selected component (if applicable):
httpd-2.4.6-13.el7.x86_64
mod_ssl-2.4.6-13.el7.x86_64
nss-3.15.3-4.el7.x86_64
openssl-1.0.1e-29.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Generate RSA certificates that are 2048bit long
2. Generate 2048 bit DH parameters, add them to file referenced by SSLCertificateFile
3. Connect using tstclnt -d /etc/pki/nssdb/ -h localhost -p 443 -V ssl3: -o -v

Actual results:
tstclnt: SSL version 3.3 using 256-bit AES with 160-bit SHA1 MAC
tstclnt: Server Auth: 2048-bit RSA, Key Exchange: 1024-bit DHE
         Compression: NULL

Expected results:
tstclnt: SSL version 3.3 using 256-bit AES with 160-bit SHA1 MAC
tstclnt: Server Auth: 2048-bit RSA, Key Exchange: 2048-bit DHE
         Compression: NULL

(note Key Exchange in second line)

Additional info:
http://csrc.nist.gov/publications/nistpubs/800-131A/sp800-131A.pdf

Httpd should automatically select DH parameters that are at least as long as the RSA keys (see SP 800-131A and SP 800-57 Part 1).

Comment 1 Joe Orton 2014-01-24 15:48:48 UTC
This is done upstream already in 2.4.7:

http://svn.apache.org/r1542327

Comment 2 Hubert Kario 2014-01-24 16:16:08 UTC
httpd also doesn't select correct curve for ECDHE when the RSA keys are big (i.e. >7680bits), making it impossible to make ECDHE suites conform to NIST SP 800-57 at higher security ratings than 128 bits.

Actual results:
tstclnt: SSL version 3.3 using 128-bit AES with 256-bit SHA256 MAC
tstclnt: Server Auth: 8192-bit RSA, Key Exchange: 256-bit ECDHE
         Compression: NULL

Expected results:
tstclnt: SSL version 3.3 using 128-bit AES with 256-bit SHA256 MAC
tstclnt: Server Auth: 8192-bit RSA, Key Exchange: 384-bit ECDHE
         Compression: NULL

(ignore AES-128 as NSS doesn't support SHA384 in TLS context and openssl s_sclient doesn't report ECDHE parameters size)

Comment 9 Hubert Kario 2014-03-05 17:57:39 UTC
Automatic selection of ECDHE curves doesn't need to be fixed now, configuration with security levels over 128 bit is non trivial (requires also disabling session tickets) and the feature requires not implemented functionality in openssl (without which interoperability may be heavily impacted).

I will create ECDHE specific bug once this issue is resolved.

Comment 10 Joe Orton 2014-03-06 11:32:00 UTC
This bug is partially fixed as bug 1071292 (really a dupe of this one).

Hubert has filed bug 1073078 and bug 1073081 to track further improvement.  Shall we have another bug for auto selection of ECDHE curves, or we could reuse this one?

Comment 11 Hubert Kario 2014-03-06 11:49:16 UTC
I think that another bug would be cleaner

Comment 12 Joe Orton 2014-03-06 11:53:51 UTC
OK, I'm duping this against 1071292.

*** This bug has been marked as a duplicate of bug 1071292 ***


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