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.
Issue also present on RHEL 6.7.z with
nss-3.19.1-3.el6_6.x86_64
curl-7.19.7-46.el6.x86_64
+++ This bug was initially created as a clone of Bug #1241172 +++
Description of problem:
Programs using curl or libcurl return HTTP 400 error on subsequent https calls because certificate verification fails. If only one url is requested at a time, verification succeeds.
Version-Release number of selected component (if applicable):
curl-7.29.0-19.el7.x86_64
php-5.4.16-36.el7_1.x86_64
nss-3.19.1-3.el7_1.x86_64
How reproducible:
[user@host htdocs]# curl -v -I https://owncloud.org/https://www.owncloud.org/
* About to connect() to owncloud.org port 443 (#0)
* Trying 50.30.33.236...
* Connected to owncloud.org (50.30.33.236) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL connection using TLS_DHE_RSA_WITH_AES_128_CBC_SHA
* Server certificate:
* subject: CN=www.owncloud.org,OU=Domain Control Validated
* start date: Feb 09 23:47:38 2015 GMT
* expire date: Dec 10 10:32:11 2015 GMT
* common name: www.owncloud.org
* issuer: CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O="GoDaddy.com, Inc.",L=Scottsdale,ST=Arizona,C=US
> HEAD / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: owncloud.org
> Accept: */*
>
< HTTP/1.1 200 OK
[...]
* Connection #0 to host owncloud.org left intact
* About to connect() to www.owncloud.org port 443 (#1)
* Trying 50.30.33.236...
* Connected to www.owncloud.org (50.30.33.236) port 443 (#1)
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL connection using TLS_DHE_RSA_WITH_AES_128_CBC_SHA
* Server certificate:
* subject: CN=www.owncloud.org,OU=Domain Control Validated
* start date: Feb 09 23:47:38 2015 GMT
* expire date: Dec 10 10:32:11 2015 GMT
* common name: www.owncloud.org
* issuer: CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O="GoDaddy.com, Inc.",L=Scottsdale,ST=Arizona,C=US
> HEAD / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: www.owncloud.org
> Accept: */*
>
< HTTP/1.1 400 Bad Request
[...]
* Closing connection 1
The only difference I can see is that
Initializing NSS with certpath: sql:/etc/pki/nssdb
is present on the first call but not on the second. CAfile is mentioned on both calls.
Steps to Reproduce:
1. curl -v -I https://owncloud.org/https://www.owncloud.org/
2.
3.
Actual results:
HTTP/1.1 200 OK
HTTP/1.1 400 Bad Request
Expected results:
HTTP/1.1 200 OK (for https://owncloud.org/)
HTTP/1.1 301 Moved Permanently (for https://www.owncloud.org/)
Additional info:
This also happens with php 5.6.10 and curl-7.43, both compiled from Fedora src rpm for RHEL7 but only when --with-nss (default) is used. Compiled with --with-ssl (openssl) curl/libcurl/php works as expected.
This prevents e.g. owncloud from working properly (apps / external data cannot be loaded)
--- Additional comment from Kamil Dudka on 2015-07-08 12:33:22 EDT ---
This looks like bug #1104597 (nss bug), will have a look tomorrow.
--- Additional comment from Benjamin Xiao on 2015-07-08 14:01:45 EDT ---
Also seeing this on Fedora 22 with up-to-date standard php and curl packages.
--- Additional comment from Kamil Dudka on 2015-07-09 04:50:19 EDT ---
(In reply to Kamil Dudka from comment #1)
> This looks like bug #1104597 (nss bug), will have a look tomorrow.
Confirmed. Attachment #902122[details] fixes the bug. Flipping the component to nss.
--- Additional comment from Stefan Neufeind on 2015-07-25 16:18:33 EDT ---
I've heard rumours this also affacts RHEL6, so we might require a backport as well then.
--- Additional comment from Kamil Dudka on 2015-09-03 05:02:58 EDT ---
A patch for this bug (attachment #902122[details]) was proposed more than a year ago. Could you please have a look at that?
The issue was fixed on the curl side and released in the 6.8.0 release, see bug 1269660.
In the solution provided by the new curl package not sufficient?
As Kamil said in the RHEL-7 version of the bug, we don't yet have a reason to not fix it in NSS itself.
So I don't think it is necessary to close this bug just yet.
Oh, yes, sorry. I got confused about NSS vs. curl. So yes, while the curl
issue is solved, the NSS one (this RHBZ) isn't yet. Makes sense to get this
fixed as well :)
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/RHEA-2017-0671.html