cURL / Mailing Lists / curl-users / Single Mail

curl-users

Error 35

From: Ajit, Kumar (IE10) <ajit.kumar_at_honeywell.com>
Date: Mon, 18 Mar 2002 02:37:39 -0600

hi,
i am using Curl::easy perl package to get a file from the apache webserver.
i did the required settings in httpd.conf file. i have created a certificate
and a key file for my perl client. this is the piece of setting i am doing
in my client code:

my $curl Curl::easy:init();

Curl::easy:setopt($curl, CURLOPT_SSLVERSION, 2);
Curl::easy:setopt($curl, CURLOPT_SSLCERT, "authdata/myclient.crt");
Curl::easy:setopt($curl, CURLOPT_SSLKEY, "authdata/myclient.key");
Curl::easy:setopt($curl, CURLOPT_CAINFO, "authdata/CAcert.crt");
Curl::easy:setopt($curl, CURLOPT_SSL_VERIFYPEER, 2);
Curl::easy:setopt($curl, CURLOPT_SSL_VERIFYHOST, 1);

Curl::easy:setopt($curl, CURLOPT_WRITEFUNCTION, \&myWriteCallback);
Curl::easy:setopt($curl, CURLOPT_FILE, *MYOUTPUTFILE);
Curl::easy:setopt($curl, CURLOPT_HTTPGET, 0);

my $nRet = Curl::easy:perform($curl);
if ($nRet != CURLE_OK) {
        print "Operation failed "."::"."$nRet";
        die "Exiting....."
}

When the above piece of code is run, always the program is coming out with
CURLE_SSL_CONNECT_ERROR (error code :: 35). It seems it's happening before
any comminication starts with the SSL engine.

Is there any problem with the seetings or am i missing something?

please write me.
thanks & regards
ajit
Received on 2002-03-18