简体   繁体   中英

Symfony project in netbeans: cURL error 60

Whenever I create a new php project in netbeans that use the Symfony2 framework, it always responds with an error message which says:

[GuzzleHttp\\Ring\\Exception\\RingException]
cURL error 60: SSL certificate problem: unable to get local issuer certificate

I have already tried the solution written on Symfony's webpage with the cacert.pem file, also tried to move it to the extras/ssl folder, but none of this worked.

First of all, I think that there is no relation between netbeans and the error.

next, try to add option 'verify' => false, to the guzzle client

<?php

use GuzzleHttp\Client;

$client = new Client([
        'verify' => false,
]);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM