cURL / Mailing Lists / curl-users / Single Mail

curl-users

Libcurl support for https access and sftp access ??

From: <bharath.venkata_at_wipro.com>
Date: Tue, 23 Dec 2008 17:07:17 +0530

Hi,
 
We use Libcurl and Libssh2 for supporting sftp access for our
application. Which works pretty well.
 
But when we try to implement HTTPS access and When we are using options
like CURLOPT_SSLENGINE or CURLOPT_SSLENGINE_DEFAULT curl produces error
like below:
 
* Failed to initialise SSL Engine 'dynamic':
error:00000000:lib(0):func(0):reason(0)
* About to connect() to <IP> port 6001 (#0)
* Trying <IP>... * connected
* Connected to <IP> (<IP>) port 6001 (#0)
* crypto engine not set, can't load private key
* Closing connection #0
 
Version curl used is curl-7.18.2 and libssh2 is libssh2-0.18.
 
We compile Curl as below,
tar zxf curl-7.18.2.tar.gz and ./configure --with-libssh2=<libssh2
path>
 
But when we try to link Libcurl provided by Redhat, version of Libcurl
is curl-7.12.1, output was different
 
* About to connect() to <ip> port 443
* Trying <ip>... * connected
* Connected to <ip> (<ip>) port 443
* unable to set certificate file (wrong password?)
* Closing connection #0
 
While using Libcurl provided by Redhat, port number is 443, i.e., HTTPS
, but with with curl version curl-7.18.2 port number is different i.e.,
6001.
 
Our queries are, does errors we got from different versions curl are
same ??
Will there be any issues for implementing HTTPS access, if we use
libssh2 along with libcurl ??
or we need to generate libcurl libraries with any different option ??
 
Your suggestions will be highly helpfull in our implementation.
 
Regards,
Bharath.
 

Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2008-12-23