cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: PHP nuSoap (cURL) vs AXIS server

From: Ben Noordhuis <info_at_bnoordhuis.nl>
Date: Mon, 7 Mar 2011 12:46:44 +0100

On Mon, Mar 7, 2011 at 12:02, Supporto Tecnico eMax <support_at_emax.it> wrote:
> I've this problem: an Apache 2 on MS Server and a PHP Script that must to
> connect on a https AXIS web service that require certificate
> (https://weg.rm.enel.it/axis/rpcEdi.do/urn:SoapEdi?wsdl)
>
> I've used nuSoap (a class based on cURL, if someone not know) hacked by me
> using this parameter changed
> -setCurlOption(CURLOPT_SSL_VERIFYPEER, 0);
> -setCurlOption(CURLOPT_SSL_VERIFYHOST, 0);
>
> But the answer from the server is the same when I attempt to invoke a call
>
> HTTP ERROR: cURL ERROR: 58: unable to set private key file
>
> Where is the problem ? My PEM certificate have only PUBLIC KEY and for me is
> impossible to have private key (no any kind of support from supplier -
> non-existent service
> ).

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.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-07