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 1197340 - document that stunnel does not care about 'curve' option in client mode
Summary: document that stunnel does not care about 'curve' option in client mode
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: stunnel
Version: 7.0
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Tomas Mraz
QA Contact: Stanislav Zidek
URL:
Whiteboard:
Depends On:
Blocks: 1057566
TreeView+ depends on / blocked
 
Reported: 2015-02-28 15:08 UTC by Stanislav Zidek
Modified: 2016-11-04 01:33 UTC (History)
1 user (show)

Fixed In Version: stunnel-4.56-5.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-04 01:33:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2243 0 normal SHIPPED_LIVE stunnel bug fix update 2016-11-03 13:29:30 UTC

Description Stanislav Zidek 2015-02-28 15:08:50 UTC
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.

Comment 1 Tomas Mraz 2016-01-05 12:38:05 UTC
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.

Comment 2 Hubert Kario 2016-01-05 14:57:13 UTC
well, you can tell openssl which curves to advertise in client mode, but a curve is still selected by the server

Comment 3 Tomas Mraz 2016-01-05 15:18:11 UTC
(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.

Comment 7 Stanislav Zidek 2016-09-05 14:01:02 UTC
Removing test, since this turned out to be a documentation change.

Comment 9 errata-xmlrpc 2016-11-04 01:33:36 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, 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


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