curl-and-php
Re: integrating CURL in PHP with certificates
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 19 Dec 2001 13:52:32 +0100 (MET)
Date: Wed, 19 Dec 2001 13:52:32 +0100 (MET)
On Tue, 18 Dec 2001, Hugo Alexandre A. S. Dias wrote:
> My problem is that i need to give CURL the --cacert param.
>
> Can anyone tell me what's the same option in curl_setopt?
The curl command line tool uses these options when --cacert is set:
curl_easy_setopt(curl, CURLOPT_CAINFO, cacert_ptr);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, TRUE);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 2);
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2001-12-19