Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cURL error 60 with self signed certificate #1490

Closed
julianhaines opened this issue Jun 7, 2016 · 6 comments
Closed

cURL error 60 with self signed certificate #1490

julianhaines opened this issue Jun 7, 2016 · 6 comments
Labels

Comments

@julianhaines
Copy link

Hi,

To start I am not great on Linux and learning, I have just installed ownCloud and its working great but I am getting the GuzzleHttp error:

GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: self signed certificate at /var/www/owncloud/3rdparty/guzzlehttp/guzzle/src/Exception/RequestException.php#51

I have been working on this for a week and still no progress, am not certain if this is a GuzzleHttp error of Curl error or if its the same thing but I am totally stuck.

I have a signed certificate from Comodo and have it working for https and cant see why/where GuzzleHttp or Curl is erroring?

I am running Ubuntu x64 15.* fully updated clean server apart for ownCloud.

Thanks for any help

Julian

@ErichHartmann
Copy link

@julianhaines

Take a look at this...

https://github.com/symfony/symfony-installer/issues/260
https://github.com/symfony/symfony-installer/issues/237

Frankly, downloading a cacert.pem from a non-responsible source is a poor security practice and opens up more holes than the protection afforded TLS. I recommend finding the public certificate(s) from Mozilla directly. Mozilla's reputation is more reliable.

@mtdowling mtdowling changed the title Error Message cURL error 60: SSL certificate cURL error 60 with self signed certificate Aug 24, 2016
@sagikazarmark
Copy link
Member

sagikazarmark commented Nov 8, 2016

You might want to install the common certificate bundle package:

$ sudo apt-get install ca-certificates

Also, alternatively you can turn off TLS verification by setting the verify option to false. (This is not a safe decision though, but should work for custom, local applications.)

I believe it's not a cURL nor a Guzzle issue.

@tolsoft32
Copy link

as at today on windows 10, when i was trying to install symfony with php command, i still got the same error, even after trying the method here, pls can you give a clear guide on how to disable Curl verification

@torogos
Copy link

torogos commented Mar 22, 2018

@sagikazarmark Where is the option to set the verify to false? I've read this a million times now but no one says in which file or where this must be done.

@ssanders
Copy link

$guzzle = new GuzzleHttp\Client(array (
    'verify' => false
));

@jupripratama
Copy link

thanks broo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants