cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

cURL error 58 - private key

From: Supporto Tecnico eMax <support_at_eMax.it>
Date: Tue, 8 Mar 2011 12:18:24 +0100

I 've this problem.

I'm working as developer on a Software house that must to connect his
product on a big supplier that don't want to help us.

We must to connect on his webService using php-libCurl using SSH and
certificate ( <https://weg.rm.enel.it/axis/rpcEdi.do/urn:SoapEdi?wsdl>
https://weg.rm.enel.it/axis/rpcEdi.do/urn:SoapEdi?wsdl ).

We can't have private key and the problem is always the same:

 

wsdl error: Getting
<https://weg.rm.enel.it/axis/rpcEdi.do/urn:SoapEdi?wsdl>
https://weg.rm.enel.it/axis/rpcEdi.do/urn:SoapEdi?wsdl - HTTP ERROR: cURL
ERROR: 58: unable to set private key file: 'C:\Program Files
(x86)\xampp\htdocs\e-Max\WS\eMax2.key' type PEM

url: <https://weg.rm.enel.it:443/axis/rpcEdi.do/urn:SoapEdi?wsdl>
https://weg.rm.enel.it:443/axis/rpcEdi.do/urn:SoapEdi?wsdl

 

I use a class based on cURL : nuSoap.

At this moment I realized that the problem is using CURLOPT_SSL_*; for this
reason I change on class

                  $this->setCurlOption(CURLOPT_SSL_VERIFYPEER, 0);

                  $this->setCurlOption(CURLOPT_SSL_VERIFYHOST, 0);

 

The problem was the same (ANSWER : cURL error 58 : unable ... private key)..

IS IMPOSSIBLE HAVE THE PRIVATE KEY FROM SUPPLIER!!!!!

I had to finish the project last thusday... I'm desperate!

The chief is angry and don't kwnow where to run!

 

Francesco

 

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2011-03-08