Error Setting Certificate Verify Locations Curl
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business curl (60) error setting certificate verify locations Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation
Curl 77 Error Setting Certificate Verify Locations
Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like
Curl Error Setting Certificate Verify Locations Windows
you, helping each other. Join them; it only takes a minute: Sign up How do I deal with certificates using cURL while trying to access an HTTPS url? up vote 82 down vote favorite 24 I am
Curl Error Setting Certificate Verify Locations Ubuntu
getting the following error using curl: curl: (77) error setting certificate verify locations: CAfile: /etc/ssl/certs/ca-certificates.crt CApath: none How do I set this certificate verify locations? Thanks. api curl https share|improve this question edited Aug 27 '10 at 22:00 Josh 8,39774489 asked Jul 1 '10 at 19:08 moorecats 6022820 2 What OS/distro are you on? You should install the ca-certificates package (that's what it's called on debian/ubuntu). –igorw Jul 1 '10 at 19:34 23 For curl https future reference, I had already ca-certificates installed but the error persisted. The problem was that my certificates were located in /etc/ssl/certs/ca-certificates.crt instead of /etc/pki/tls/certs/ca-bundle.crt, so I just had to set the environmental variable CURL_CA_BUNDLE to the correct path. –Robert Smith Dec 11 '14 at 4:28 6 Cool! It works for me when I set export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt. –HoneyTidy Mar 18 at 7:06 @HoneyTidy. Thanks! –Joker Apr 3 at 17:12 add a comment| 14 Answers 14 active oldest votes up vote 29 down vote accepted This error is related to a missing package: ca-certificates. Install it. In Ubuntu Linux (and similar distro): # sudo apt-get install ca-certificates In CygWin via Apt-Cyg # apt-cyg install ca-certificates In Arch Linux (Raspberry Pi) # pacman -S ca-certificates The documentation tells: This package includes PEM files of CA certificates to allow SSL-based applications to check for the authenticity of SSL connections. As seen at: Debian -- Details of package ca-certificates in squeeze share|improve this answer edited Apr 21 '15 at 7:19 Community♦ 11 answered Nov 15 '12 at 15:41 Rubens Mariuzzo 13.2k1772117 48 ca-certificates is already the newest version, yet I'm still getting the error –Pastor Bones Jan 10 '13 at 17:09 1 Of course, you'll get this same error if you try to install apt-cyg via the recommended method using curl and raw.github.com. &nda
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site error setting certificate verify locations cygwin About Us Learn more about Stack Overflow the company Business Learn more about hiring error setting certificate verify locations php developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a error setting certificate verify locations git question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers http://stackoverflow.com/questions/3160909/how-do-i-deal-with-certificates-using-curl-while-trying-to-access-an-https-url are voted up and rise to the top How to fix CA cert issues with Curl in Ubuntu 14.04? up vote 8 down vote favorite 3 I am using Ubuntu 14.04. When I use curl, I get the following error: curl: (77) error setting certificate verify locations: CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: From what I gather from googling, the CAfile location it is looking for is not correct for Ubuntu http://askubuntu.com/questions/646594/how-to-fix-ca-cert-issues-with-curl-in-ubuntu-14-04 (and it doesn't exist on my computer), /etc/ssl/certs/ca-certificates.crt is the proper location. Most of the solutions involved setting the environment variable CURL_CA_BUNDLE to the proper location, or adding cacert=/etc/ssl/certs/ca-certificates.crt to the (newly created) .curlrc file in my home directory. I have tried both, and neither completely solve the issue. curl is finding this location, but it still doesn't work, giving the error: curl: (60) SSL certificate problem: self signed certificate in certificate chain I also tried uninstalling and reinstalling curl in Ubuntu, and updating my CA certs with $ sudo update-ca-certificates --fresh which updated the certs, but still didn't make error 60 go away. I am not that knowledgeable about CA certs, and doubt I purposely added some self signed certificate in the past. Perhaps by accident, I don't know. Does anyone know how to fix this? Is there a way to actually start fresh with all my certs? Or does anyone even know how I go about figuring out where this self signed certificate is, and then how to remove it? PS: I don't want to use the -k (aka --insecure) flag. I want to get this working securely. ssl curl certificates share|improve this question asked Jul 9 '1
Centrify Express for Mac, Centrify Express for Linux and UNIX and Centrify Express for CAC Smart Cards. × Welcome to the Centrify Community! Looking for Express & Smart Card Help? Click Here Community | Forums | http://community.centrify.com/t5/Centrify-Express/Curl-OpenSSL-certificate-question/td-p/15539 Express | Curl / OpenSSL certificate question Curl / OpenSSL certificate question Reply Topic https://cygwin.com/ml/cygwin/2015-09/msg00224.html Options Subscribe to RSS Feed Mark Topic as New Mark Topic as Read Float this Topic to the Top Bookmark Subscribe Printer Friendly Page « Message Listing « Previous Topic Next Topic » « Previous 1 2 Next » MHoeppner Participant II Posts: 2 Registered: 02-24-2014 #1 of 16 13,028 Curl / OpenSSL certificate question error setting Options Mark as New Bookmark Subscribe Subscribe to RSS Feed Highlight Print Email to a Friend Report Inappropriate Content 02-24-2014 04:02 AM Hi,I have been using Centrify Express for AD authentication on our SL 6.2 cluster for quite some time - very happy!However, I have now encountered an issue that I am not sure how to fix (it's probably trivial tho). I am trying to install alternate versions error setting certificate of python using 'pyenv'. This tool downloads python source files from a secure server and sets them up in different sub-folders to create virtual environments.However, when running the installation, it fails to download from a https source:---------------/tmp/python-build.20140224124112.56288 ~curl: (60) error setting certificate verify locations: CAfile: /usr/share/centrifydc/apache/certs/ca-certs.crt CApath: noneMore details here: http://curl.haxx.se/docs/sslcerts.htmlcurl performs SSL certificate verification by default, using a "bundle"of Certificate Authority (CA) public keys (CA certs). The defaultbundle is named curl-ca-bundle.crt; you can specify an alternate fileusing the --cacert option.If this HTTPS server uses a certificate signed by a CA represented inthe bundle, the certificate verification probably failed due to aproblem with the certificate (it might be expired, or the name mightnot match the domain name in the URL).If you'd like to turn off curl's verification of the certificate, usethe -k (or --insecure) option.--------I note that the path(s) for CAfile and CApath reported here don't exist. I am sort of guessing that since centrify replaces some of the standard stuff related to SSL, the problem lies there, somewhere... I have installed the ca-certificate package, to no avail.Any suggestions on how to fix this? :)Regards,Marc Solved! Go to Solution. Report Inappropriate Content Reply 0 Kudos Robertson Centrify Guru I Posts: 1,403 Registered: 07-26-2012 #2
Error setting certificate verify locations From: Andrey Repin