cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Re: PHP nuSoap (cURL) vs AXIS server

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 7 Mar 2011 16:15:13 +0100 (CET)

On Mon, 7 Mar 2011, Supporto Tecnico eMax wrote:

>> The error message seems to indicate that X.509 / PKCS12 client
>> authentication is attempted but it's hard to tell without a more complete
>> code sample.
>
> a complete code I think is not helpfull because I don't use directly cURL
> but a class that use cURL: nuSoap (nuSoap homepage here:
> https://sourceforge.net/projects/nusoap/ ).

Let me suggest that as you're asking for help about libcurl (which this list
is for), making an example that repeats the problem using libcurl directly
instead of many additional layers of glue code is generally a good idea.

> $client->setCredentials("","","certificate", array(
> "sslcertfile" => realpath("c:\\Program Files
> (x86)\\xampp\\htdocs\\candi2.cer"),
> // "sslkeyfile" => realpath("c:\\Program Files
> (x86)\\xampp\\htdocs\\donthave.key"),
> // "passphrase" => "",
> // "certpassword" => "paladin",//OPTIONAL

These options seem highly relevant. Can you run the curl command line tool
using that cert + key combination against the target server? The corresponding
libcurl option (for one of these) is called CURLOPT_KEYPASSWD and needs to be
the key you used for your private key (file).

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-07