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.
This cannot be easily supported and it is also not something that is really expected to work. The EC curves are configurable only on the server side.
Making the bug docfix-only to clarify the manual page that the option applies only to the server mode.
(In reply to Hubert Kario from comment #2)
> well, you can tell openssl which curves to advertise in client mode, but a
> curve is still selected by the server
There is no API for that in 1.0.1 branch which we have in RHEL-7. That was added only in 1.0.2.
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/RHBA-2016-2243.html
Description of problem: There is a documented option 'curve' for stunnel config file, but it is ignored if stunnel is run in client mode ('client = yes'). Version-Release number of selected component (if applicable): # rpm -q stunnel stunnel-4.56-4.el7.x86_64 # openssl version OpenSSL 1.0.2-beta3 25 Sep 2014 (note I am using newer vesion of openssl for debugging) How reproducible: always Steps to Reproduce: 1. openssl ecparam -genkey -name secp384r1 -out ca.key 2. openssl req -x509 -batch -new -key ca.key -out ca.cert -subj '/CN=ca' 3. openssl ecparam -genkey -name secp384r1 -out server.key 4. openssl req -batch -new -key server.key -out server.csr -subj "/CN=server" 5. openssl x509 -req -CAkey ca.key -CA ca.cert -CAcreateserial -in server.csr -out server.cert 6. openssl s_server -www -key server.key -cert server.cert -CAfile ca.cert -tls1_2 -sigalgs ECDSA+SHA384:ECDSA+SHA256 -Verify 1 -cipher ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384 (other console:) 7. cat >stunnel.conf <<_EOF foreground = yes fips = no [test] client = yes accept = 9999 connect = localhost:4433 sslVersion = TLSv1.2 curve = secp384r1 ; <<<<< HERE WE SPECIFY THE CURVE _EOF 8. stunnel stunnel.conf (yet another console:) 9. curl localhost:9999 Actual results: ... Shared Elliptic curves: P-521:P-384:P-256 ... Expected results: ... Shared Elliptic curves: P-384 ... Additional info: Specifying 'curves' option work in server mode.