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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kf at sumptuouscapital dot com
New email:
PHP Version: OS:

 

 [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: Mon Apr 29 18:01:30 2024 UTC