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.
DescriptionMiroslav Vadkerti
2015-04-27 14:05:11 UTC
Description of problem:
The fix in bug 1171879 introduced an usability change in stunnel and on a non-FIPS machine with enabled prelink stunnel will fail:
# stunnel /tmp/tmp.SOoewnl3DD/BUILD/curl-7.19.7/tests/stunnel.conf
2015.04.27 08:48:11 LOG7[3068:3078223664]: Snagged 64 random bytes from /root/.rnd
2015.04.27 08:48:11 LOG7[3068:3078223664]: Wrote 1024 new random bytes to /root/.rnd
2015.04.27 08:48:11 LOG7[3068:3078223664]: RAND_status claims sufficient entropy for the PRNG
2015.04.27 08:48:11 LOG7[3068:3078223664]: PRNG seeded successfully
2015.04.27 08:48:11 LOG7[3068:3078223664]: Certificate: ./stunnel.pem
2015.04.27 08:48:11 LOG7[3068:3078223664]: Certificate loaded
2015.04.27 08:48:11 LOG7[3068:3078223664]: Key file: ./stunnel.pem
2015.04.27 08:48:11 LOG7[3068:3078223664]: Private key loaded
2015.04.27 08:48:11 LOG7[3068:3078223664]: SSL context initialized for service curltest
2015.04.27 08:48:11 LOG3[3068:3078223664]: FIPS_mode_set: 2D06C06E: error:2D06C06E:FIPS routines:FIPS_module_mode_set:fingerprint does not match
This can cause various issues in customer setups. FIPS failures in non-FIPS mode are not wanted.
Version-Release number of selected component (if applicable):
stunnel-4.29-3.el6_6.1
How reproducible:
100%
Steps to Reproduce:
1. have prelink installed and setup
2. booted in non-FIPS mode
3. No fips option in configuration file
4. run stunnel
Actual results:
FIPS error
Expected results:
No FIPS error
Additional info:
Comment 1Kai Engert (:kaie) (inactive account)
2015-09-17 11:22:00 UTC
I agree with the request.
I've just upgraded a RHEL 6.x box to 6.7 latest, and stunnel stopped to work, with the given error message.
The machine doesn't use FIPS, so the FIPS related error message is confusing.
Comment 2Kai Engert (:kaie) (inactive account)
2015-09-17 11:22:48 UTC
Raising priority because it's a regression.
Comment 3Kai Engert (:kaie) (inactive account)
2015-09-17 11:27:24 UTC
Not only that, but enabling the FIPS mode by default (even if the prelink did not mess with openssl) means that the stunnel will behave quite differently in regards to used ciphersuites and protocol versions. The defaults are quite different in the non-FIPS enabled build from the FIPS enabled build.
I suppose there will be customer regression reports too.
Created attachment 1074406[details]
Patch which should fix the regressions
This patch also changes the default method to all - which is the only appropriate for default currently as the TLSv1 method does not enable TLSv1.2 which should be used whenever possible.
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-0922.html