php-general Digest 26 Nov 2008 10:11:47 -0000 Issue 5811
Topics (messages 283817 through 283818):
Re: php cURL with SSL problem ??
283817 by: Boyd, Todd M.
Enable "disable_functions" globally and disable for a domain
283818 by: Santi Saez
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
> -----Original Message-----
> From: LKSunny [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 25, 2008 2:32 PM
> To: [EMAIL PROTECTED]
> 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
--- End Message ---
--- Begin Message ---
Hi,
Can I enable "disable_functions" globally and disable for individual
domains?
According to PHP documentation [1] it can be only set via php.ini..
For shared hosting scenarios, it will be great this feature.. disable
insecure functions globally, and enable for certain domains, any
workaround to make this?
Thanks!
[1] http://es.php.net/features.safe-mode
--
Santi Saez
http://woop.es
--- End Message ---