curl-library
Implicit SSL connections doesn't works
Date: Thu, 30 Aug 2007 11:03:17 +0200
Hello,
I've a problem with implicit SSL connections. I've the following code:
CURL *curl;
curl = curl_easy_init();
// common configurations
curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER, 0);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 1);
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errorMsg );
curl_easy_setopt(curl, CURLOPT_VERBOSE, TRUE);
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0); // needed for the progress
meter
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, ProgressCallback);
curl_easy_setopt(curl, CURLOPT_URL, remUrl);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &chunky);
res = curl_easy_perform(curl);
With that code I get a handshake error ("A problem occurred somewhere in the
SSL/TLS handshake") I don't think that it is a server problem, because I can
stablish implicit SSL connections using the Filezilla client. The url I use
to make the connection is:
ftps://user:pass_at_url:990/
(without putting the port number neither works)
Any idea?
Thanks in advance.
Best regards,
Abel.
Received on 2007-08-30