cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: integrating CURL in PHP with certificates

From: Sterling Hughes <sterling_at_bumblebury.com>
Date: Wed, 9 Jan 2002 20:44:22 +0100

> 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?
>
    and what is the *exact* error message?

> > 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
>
    There is no PHP 4.0.8, the latest release off the 4.0.* tree is
    4.0.6, then we move onto 4.1.* releases.

> And which libcurl version is it? What does it show you if you set
> CURLOPT_VERBOSE to 1?
>
    It would be v12 i guess. ;) If he's running off 4.1.* branch
    then its a curl 7.9.* branch and all those options should be
    available.

    -Sterling
Received on 2002-01-09