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.
Cause:
Using an LWP Perl module that does a client
TLS authentication and the client credentials are
specified by HTTPS_CERT_FILE and HTTPS_KEY_FILE
environment variables after updating perl-libwww-perl
package to 5.833-3.el6 version.
Consequence:
The module does not send client certificate to a server.
This usually leads to access denial to an HTTPS server.
Fix:
A support for HTTPS_CERT_FILE and HTTPS_KEY_FILE
environment variables to specify files with
client's certificate and client's private key
was added to LWP's IO::Socket::SSL TLS back-end.
Result:
LWP applications that used environment variables for
specifying their TLS credentials keep working even with
updated perl-libwww-perl package that changed default TLS
backend from Net::SSL to IO::Socket::SSL.
Description of problem:
By default the RHEA-2016:0817-1 broke the usage of $ENV{HTTPS_CERT_FILE} and $ENV{HTTPS_KEY_FILE}. As the patch (https://bugzilla.redhat.com/attachment.cgi?id=1103499&action=diff) does not provide compability between IO::Socket:SSL and Net::SSL
Version-Release number of selected component (if applicable):
perl-libwww-perl-5.833-3.el6
How reproducible:
100%
Steps to Reproduce:
1. Use SSL client certificates through $ENV{HTTPS_CERT_FILE} and $ENV{HTTPS_KEY_FILE}
Actual results:
Failure.
Expected results:
Something that does not require people to modify using the code as the API gets broken between maintenance releases.
Net::SSL recognizes these environment variables:
HTTPS_CA_DIR
HTTPS_CA_FILE
HTTPS_CERT_FILE
HTTPS_DEBUG
HTTPS_KEY_FILE
HTTPS_PKCS12_FILE
HTTPS_PKCS12_PASSWORD
HTTPS_PROXY
HTTPS_PROXY_PASSWORD
HTTPS_PROXY_USERNAME
HTTPS_VERSION
Not all of them can be implemented on top of IO::Socket::SSL. Thus full compatibility is not possible. We can add support for HTTPS_KEY_FILE and HTTPS_CERT_FILE easily.
But please contact Red Hat support. These changes are driven by customer requests and Bugzilla is not a support tool.
Created attachment 1195881[details]
Test case
For testing you can use certificate and key files from test case in bug #745800 and this attached script.
How to test:
(1) Create TLS server and client certificates and keys.
(2) Start an TLS server requiring client certificate.
(3) Use an LWP user agent to connect to the server. The LWP user agent should be invoked with HTTPS_CERT_FILE and HTTPS_KEY_FILE environment variables pointing client certificate and key file.
(4) Check the server accepts a connection from the client because the client sent certificate specified in the HTTPS_CERT_FILE environment variable.
Before: The server refuses the connection because the client does not send any certificate.
After: The server accepts the connection.
Please perform the test with perl-IO-Socket-SSL and without perl-Crypt-SSLeay packages installed. Then repeat the test with perl-Crypt-SSLeay and without perl-IO-Socket-SSL installed.
Please note that this special compatibility fix is intended for RHEL-6 only.
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-2017-0599.html
Description of problem: By default the RHEA-2016:0817-1 broke the usage of $ENV{HTTPS_CERT_FILE} and $ENV{HTTPS_KEY_FILE}. As the patch (https://bugzilla.redhat.com/attachment.cgi?id=1103499&action=diff) does not provide compability between IO::Socket:SSL and Net::SSL Version-Release number of selected component (if applicable): perl-libwww-perl-5.833-3.el6 How reproducible: 100% Steps to Reproduce: 1. Use SSL client certificates through $ENV{HTTPS_CERT_FILE} and $ENV{HTTPS_KEY_FILE} Actual results: Failure. Expected results: Something that does not require people to modify using the code as the API gets broken between maintenance releases.