cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: integrating CURL in PHP with certificates

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 9 Jan 2002 20:45:31 +0100 (MET)

On Wed, 9 Jan 2002, Hugo Alexandre A. S. Dias wrote:

> I tryed to implement this solution, but it keeps me telling that the client
> certificate is requiered:

Uh, how is what telling you that?

> curl_setopt($ch,CURLOPT_URL,$url);
> curl_setopt($ch,CURLOPT_POST, 1);
> curl_setopt($ch,CURLOPT_POSTFIELDS,$params);
> curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
> curl_setopt($ch, CURLOPT_SSLCERT, "..\\..\\certificados\\multicert.pem");
> curl_setopt($ch, CURLOPT_SSLCERTPASSWD, "3I3I37RP52G1L15D8T8S");
> curl_setopt($ch, CURLOPT_CAINFO,"..\\..\\certificados\\chain.cer");
> curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,true);
> curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,2);
>
> These are the OPTS i'm using.
>
> This is PHP 4.0.8 in IIS5.0

And which libcurl version is it? What does it show you if you set
CURLOPT_VERBOSE to 1?

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-01-09