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

curl-and-php

RE: cURL Error.

From: Miguel A. Ruz <maruz_at_mediafusion.es>
Date: Fri, 12 Nov 2004 17:03:17 +0100

Hi every one!!!

Thanks Daniel for your help.

The files of the server that I have for the development of the application
are:
     FileKeyStore.ks: A Keystore is a mechanism designed to create and
     manage files that store private keys and trusted certificate
     authorities (CAs) for use with SSL.

     FileKey.pem: This is the SSL certificate key file

     FileCertificate.pem: This is the SSL certificate file itself

With these files I must to developer the connection soap & https

I think this is the source code

require_once('SOAP/Client.php');
$soapclient = new SOAP_Client("https://server.com");
$soapclient->setOpt('curl', CURLOPT_VERBOSE, 1);
$soapclient->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 1);
$soapclient->setOpt('curl', CURLOPT_SSLCERT, "./FileCertificate.pem");
$soapclient->setOpt('curl', CURLOPT_SSLKEY, "./FileKey.pem");

But, this script gives this error:

HTTP Error: cURL ERROR: 58: unable to use client certificate (no key found
or wrong pass phrase?)

Thanks.
Received on 2004-11-12