LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-17-2008, 03:35 AM   #1
srihariv
LQ Newbie
 
Registered: Jan 2008
Posts: 19

Rep: Reputation: 0
Problem using Curl


hello all,

I am using curl to access a https web server...

and i am seeing the following error.

curl: (77) error setting certificate verify locations:
CAfile: /usr/local/share/curl/curl-ca-bundle.crt
CApath: none

My requirement is to use https without client side authentication.. So i guess i need not send any certificates in my curl command. I need Only "Server Side Certification"..

Suppose if i give curl -k https://site/ , then i am able to access, but -k or --insecure i guess it will not be a secure transfer.

Can anyone help me on this.

~Srihari
 
Old 03-17-2008, 05:22 AM   #2
whitemice
Member
 
Registered: Aug 2007
Location: Michigan, USA
Distribution: openSUSE
Posts: 52

Rep: Reputation: 15
Quote:
Originally Posted by srihariv View Post
hello all,
I am using curl to access a https web server...
and i am seeing the following error
curl: (77) error setting certificate verify locations:
CAfile: /usr/local/share/curl/curl-ca-bundle.crt
CApath: none
My requirement is to use https without client side authentication.. So i guess i need not send any certificates in my curl command. I need Only "Server Side Certification"..
Suppose if i give curl -k https://site/ , then i am able to access, but -k or --insecure i guess it will not be a secure transfer.
Can anyone help me on this.
~Srihari
"-k" isn't neccessarily insecure, encryption is still used but the certificate isn't verfied; I assume from the above error that you are using a self-signed certificate. Either that or your using a crap distribution (Gentoo? Slackware?) because I've *never* seen a CA search path of /usr/local/share/curl/curl-ca-bundle.crt. The CA search path should be where your distribution (/etc/ssl/certs for suSE/openSuSE). Or you can tell curl where your signing-authority certificates are stored with the --cacert / --capath options.
 
Old 03-17-2008, 06:53 AM   #3
srihariv
LQ Newbie
 
Registered: Jan 2008
Posts: 19

Original Poster
Rep: Reputation: 0
@whitemice,

I have a weird error while configuring curl.. I have given the following option ./configure --with-ssl=/usr/bin/ssl ... Bu my results show that curl was configured without ssl ...

Can you just help me out on this..

I have also export PKG_CONFIG_PATH=/usr/local/ssl/lib/pkgconfig/

So can please help configuring curl with openssl... I have researched quite a few forums but without much help...

~Srihari.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in uploading using Curl command. rmvinodh123 Programming 0 05-04-2007 11:36 AM
curl problem in fuse shahidbashir7861 Linux - Software 7 04-06-2007 04:17 PM
php curl integration problem tstName Linux - Software 0 06-27-2006 02:05 AM
curl configuration problem Harry Seldon Linux - Software 1 12-07-2005 03:33 AM
Curl problem AkumaLoka Linux - Software 0 03-02-2003 05:07 PM


All times are GMT -5. The time now is 07:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration