FriendsOfPHP / Goutte

Goutte, a simple PHP Web Scraper
MIT License
9.26k stars 1.01k forks source link

SSL routines:tls_process_ske_dhe:dh key too small #465

Open rodinmehr opened 2 years ago

rodinmehr commented 2 years ago

I want to crawl a website that uses lower SSL level, and I get this error:

Error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small for example.com

I followed this instruction but with no success: how-to-set-lower-ssl-security-level with the following command to restart php service: $sudo service php8.1-fpm restart

I also used this code to disable SSL check: $client = new Client(HttpClient::create(['timeout' => 60,'verify_peer' => false, 'verify_host' => false]));

how can I fix this issue?