cURL / Mailing Lists / curl-library / Single Mail

curl-library

getting CURLE_SSL_CONNECT_ERROR

From: Shailesh Mittal <smmittal_at_yahoo.com>
Date: Sat, 3 Nov 2001 23:32:05 -0500

I am tring to connect to a Tomcat Server Using CurlSSL from a Windows client.

When I try to connect to the server using the following code, I get CURLE_SSL_CONNECT_ERROR.
/*****************************************/
    curl_easy_setopt(m_curl, CURLOPT_WRITEHEADER, (void *)(LPSTR)(LPCTSTR)csWriteMemoryHeader);
   CString csCertificate ("CAcert.pem");

    curl_easy_setopt(m_curl, CURLOPT_SSL_VERIFYPEER, 1);
    curl_easy_setopt(m_curl, CURLOPT_CAINFO, (void *)(LPSTR)(LPCTSTR)csCertificate);

   retCC = curl_easy_perform(m_curl);
/*************************/

The code works perfectly if I connect to a non secure side. How can I make it work with SSL?

TIA,
Puja

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Received on 2001-11-03