Opened 9 years ago
Closed 9 years ago
#33978 closed defect (bug) (fixed)
Don't set CURLOPT_CAINFO if sslverify is false
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | HTTP API | Keywords: | has-patch |
Focuses: | Cc: |
Description
On OS X Yosemite and later, PHP can be compiled with a version of cURL that uses SecureTransport instead of OpenSSL. SecureTransport suffers from a bug whereby passing it a CA bundle but asking it not to verify the server's certificate causes the connection to fail with the following error:
SSL: CA certificate set, but certificate verification is disabled
In this situation, an https
request through the HTTP API will fail if sslverify
is set to false, because the sslcertificates
argument is always populated with core's CA bundle.
This is fixed by not setting the CURLOPT_CAINFO
setting when sslverify
is false, which makes sense regardless of this bug.
Further reading:
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
33978.patch is a patch with a test, although the test has limited use because the bug only affects the particular environment described above.