php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #65575 Add CURLOPT_CRLFILE
Submitted: 2013-08-28 20:32 UTC Modified: 2013-09-29 17:21 UTC
From: kf at sumptuouscapital dot com Assigned:
Status: Closed Package: cURL related
PHP Version: master-Git-2013-08-28 (Git) OS:
Private report: No CVE-ID: None
 [2013-08-28 20:32 UTC] kf at sumptuouscapital dot com
Description:
------------
In order for cURL to use a provided CRL file when verifying peers CURLOPT_CRLFILE has to be set in the form of a char * (available since 7.19) 

This can then be used in the form like 
 curl_setopt($chhkps, CURLOPT_CRLFILE, '/path/to/ca/crl.pem'); 
 curl_setopt($chhkps, CURLOPT_SSL_VERIFYHOST, 2);
 curl_setopt($chhkps, CURLOPT_SSL_VERIFYPEER, true);


Expected result:
----------------
CRL file being validated. As is the behaviour with the provided patch

Actual result:
--------------
Constant CURLOPT_CRLFILE not defined

Patches

php_curl_crlfile.patch (last revision 2013-08-28 20:33 UTC by kf at sumptuouscapital dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-09-29 17:21 UTC] kf at sumptuouscapital dot com
-Status: Open +Status: Closed
 [2013-09-29 17:21 UTC] kf at sumptuouscapital dot com
This seems to be fixed in master and in php 5.5.4
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 19:01:31 2024 UTC