Doc #52938 [Opn->Csd]: CURLOPT_CERTINFO not documented, available since 5.3.2

From: Date: Tue, 19 Oct 2010 04:29:20 +0000
Subject: Doc #52938 [Opn->Csd]: CURLOPT_CERTINFO not documented, available since 5.3.2
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5244@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52938&edit=1 ID: 52938 Updated by: kalle@php.net Reported by: blacklight332 at aol dot com Summary: CURLOPT_CERTINFO not documented, available since 5.3.2 -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: Linux/Ubuntu 10.04 PHP Version: 5.3.3 -Assigned To: +Assigned To: kalle Block user comment: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2010-10-19 06:29:13] kalle@php.net Automatic comment from SVN on behalf of kalle Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=304496 Log: Fixed bug #52938 (CURLOPT_CERTINFO not documented, available since 5.3.2) ------------------------------------------------------------------------ [2010-09-28 22:20:37] blacklight332 at aol dot com Updated email address to an email that I don't care if it gets spammed, cause this page is publicly accessible. ------------------------------------------------------------------------ [2010-09-28 00:10:11] blacklight332 at aol dot com Description: ------------ I went to http://us.php.net/manual/en/function.curl-setopt.php and did a search for CURLOPT_CERTINFO and did not find anything. Yet I went to http://php.net/ChangeLog-5.php and did a search for CURLOPT_CERTINFO and found the option had been available since 5.3.2. Test script: --------------- <?php if($fp = tmpfile()) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"https://www.digicert.com/"); curl_setopt($ch, CURLOPT_STDERR, $fp); curl_setopt($ch, CURLOPT_CERTINFO, 1); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_SSLVERSION,3); $result = curl_exec($ch); curl_errno($ch)==0 or die("Error:" . curl_errno($ch) . " Message:" . curl_error($ch)); fseek($fp, 0);//rewind $str=''; while(strlen($str.=fread($fp,8192))==8192); echo $str; fclose($fp); } ?> Expected result: ---------------- echo $str; produce the debug output of the certificate, similar to linux command line: openssl x509 -in my_website_com.crt -noout -text I played with it and built some sample code that works. Also, CURLOPT_CERTINFO outputs data to CURLOPT_STDERR. CURLOPT_CERTINFO seems to only work when CURLOPT_VERBOSE is 1. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52938&edit=1

« previous php.doc.bugs (#5244) next »