LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-11-2004, 02:12 PM   #1
polo76
LQ Newbie
 
Registered: Jun 2003
Posts: 9

Rep: Reputation: 0
curl error setting certificate verify locations


I get this error when running this command from the command line:

curl https://www.domain.com

curl: (60) error setting cerficate verify locations

I assume that this should be *certificate* instead of *cerficate* which leads me to believe that it's a problem on my setup (SuSE 8.2).

I have been trying to find the config file for curl to see if it is a problem with the path to something.

Any ideas?
 
Old 03-11-2004, 06:46 PM   #2
polo76
LQ Newbie
 
Registered: Jun 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Could it be due to the fact that I have no CAcert.pem or CAkey.pem?

If so can I just set up my own certificate and where is the best place to get one from?
 
Old 03-15-2004, 10:02 AM   #3
polo76
LQ Newbie
 
Registered: Jun 2003
Posts: 9

Original Poster
Rep: Reputation: 0
After running a few more test it seems that it may be a problem with SSL after all. If I run curl -k https://www.paypal.com it works and I can establish a secure connection (just ignoring to to check the incoming cert).

This also works with my script when I add:

curl_setopt($curlSession, CURLOPT_SSL_VERIFYPEER, FALSE);

The session is still secure but I would be open to a "man-in-the-middle" attack.

Does anyone know where the perl script is that is run to check the incoming cert because I think it's this that is causing the problem.

Is there a simple search I can do that can check within a file for the string "error setting cerficate verify locations"

Thanks
 
Old 02-12-2008, 07:08 PM   #4
bulbous23
LQ Newbie
 
Registered: Oct 2005
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by polo76 View Post
Is there a simple search I can do that can check within a file for the string "error setting cerficate verify locations"

Thanks
grep 'error setting cerficate verify locations' <filename>
will search

I solved the problem (on Ubuntu 7.10 gutsy) by doing this:

sudo aptitude install ca-certificates

I imagine something similar will work for other platforms -- you may be missing the ca-certificates package
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Openssl - verify wheather certificate is revoked djgerbavore Linux - Security 1 11-21-2005 08:20 AM
Webmin error local machine: Recieved invalid certificate sallas Linux - Software 2 06-19-2004 09:59 PM
debs downloading unsigned, verify error Likosin Debian 2 04-03-2004 01:02 PM
Curl: How to add remote site to a certificate? mikeshn Programming 0 12-15-2003 08:14 PM
glftpd error with SSL certificate dopper Linux - Software 4 10-06-2003 04:05 PM


All times are GMT -5. The time now is 11:30 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration