I'm trying to make a request to the website with Symfony/Goutte but I'm receiving such error:
In ErrorChunk.php line 65:
SSL peer certificate or SSH remote key was not OK for "https://example.com".
In CurlResponse.php line 298:
SSL peer certificate or SSH remote key was not OK for "https://example.com".
Here's the code:
use Goutte\Client;
$client = new Client();
$client->request('GET', 'https://example.com');
How to fix this?
setClient
method inGoutte\Client
– Coalfish