ID:               50614
 Updated by:       [email protected]
 Reported By:      dimarikson at yandex dot ru
-Status:           Open
+Status:           Bogus
 Bug Type:         OpenSSL related
 Operating System: FreeBSD 7, Windows XP
 PHP Version:      5.2.12
 New Comment:

You should report curl bugs at:
 
 http://sourceforge.net/tracker/?group_id=976&atid=100976


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

[2009-12-31 13:01:37] dimarikson at yandex dot ru

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.

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

[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