RE: [PHP] php cURL with SSL problem ??

From: Date: Tue, 25 Nov 2008 20:42:49 +0000
Subject: RE: [PHP] php cURL with SSL problem ??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-283817@lists.php.net to get a copy of this message
> -----Original Message----- > From: LKSunny [mailto:ad@pc86.com] > Sent: Tuesday, November 25, 2008 2:32 PM > To: php-general@lists.php.net > Subject: [PHP] php cURL with SSL problem ?? > > Hello, > > i want get https data with cURL, however just can via set > curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); > > by the moment, i need turn curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, > true); > i got some idea is "ca certificates", however how can i do it ? > > this is crt file ? can not make from openssl ? if can make from > openssl, any > sample command ? > and how to use ? > > i am using Windows (WIN32) > apache2.2+php5 I'm not sure I entirely understand your question... but here goes: Yes, you can make your own CRT/KEY/CER files using OpenSSL. http://www.freebsd.org/doc/en/books/handbook/openssl.html has some instructions. Hope this helps, // Todd

« previous php.general (#283817) next »