curl-and-php
RE: Error 58 unable to set private key file
Date: Thu, 14 Dec 2006 13:54:10 +0100
-----Oorspronkelijk bericht-----
Van: curl-and-php-bounces_at_cool.haxx.se
[mailto:curl-and-php-bounces_at_cool.haxx.se] Namens Daniel Stenberg
Verzonden: donderdag 14 december 2006 13:27
Aan: curl with PHP
Onderwerp: Re: Error 58 unable to set private key file
On Thu, 14 Dec 2006, The PayPerPhone company; Willem Blok wrote:
> Tried every tip with succes.
What tips are those?
[Willem Blok] Found on this issue like putting the key in pem file,
using the correct paths
> When using CURL all works fine, however with Curllib not
Eh, what's the difference? "CURL" is what PHP people tend to call the
PHP/CURL
binding and "Curllib" sounds like libcurl but the only way PHP hackers
access
libcurl is by using the PHP/CURL binding.
[Willem Blok] doing a call from PHP the command line with using LibCurl
Or is "CURL" the same as using the curl command line tool?
> Certs are open SSL selfsigned 1024
How can the client cert be self-signed?[Willem Blok] I mean signed by
our own CA.
> this is the error;
>
> chErrNo: 58 chErrStr: unable to set private key file:
> '/path/ifs101_client.pem' type PEM
You need to pass on the corresponding key file and passphrase for the
key when
you use a client certificate.
[Willem Blok]tried this Curlopt_SSLKEY ( ...) same result. Note that we
use both client and server certificates.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2006-12-14