ID:               50614
 User updated by:  dimarikson at yandex dot ru
 Reported By:      dimarikson at yandex dot ru
-Status:           Feedback
+Status:           Open
 Bug Type:         OpenSSL related
 Operating System: FreeBSD 7, Windows XP
 PHP Version:      5.2.12
 New Comment:

Actually this is not a bug. May be a misfunction. I found this in a
curl source code:

if(SSL_CTX_use_PrivateKey_file(ctx, key_file, file_type) != 1) {
failf(data, "unable to set private key file: '%s' type %s",
key_file, key_type?key_type:"PEM");

Also I have found a solution how to avoid this. I have used "OpenSSL"
library and "fsockopen" to manually encrypt and send the request. May be
this is a bit offtopic, but I guess it can help someone.


Previous Comments:
------------------------------------------------------------------------

[2009-12-30 23:48:13] [email protected]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.



------------------------------------------------------------------------

[2009-12-30 22:51:59] dimarikson at yandex dot ru

Description:
------------
Setting curl certificate option "CURLOPT_SSLCERT" arrouse checking of a
private key and throws an error if key is not valid or empty: "(58)
unable to set private key file". 

But many sites do not provide private key at all (i.e. only outgoing
data being encrypted). So this makes impossible to communicate with
these sites through php.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=50614&edit=1

Reply via email to