Guzzle
Error prompt
If an error occurs as follows:
Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/… in xxx.php
The reason is that the local CURL SSL certificate is too old to recognize.
Solution:
- Download an up-to-date certificate from http://curl.haxx.se/ca/cacert… Then save it to an arbitrary directory.
- Then put catr.pem in the bin directory of php and edit php.ini, open the php.ini file with notepad or notepad++, about line 1932.
- Remove the comment “;” in front of curl.cainfo, then write the full path and file name of the cacert.pem certificate at the end, mine is as follows
Finally, restart the wamp.
Read More:
- [Solved] getObject: FAILED RequestCoreException: cURL resource: Resource id #78; cURL error: SSL certificate
- [Solved] PHP Fatal error: Uncaught Error: Class ‘Redis‘ not found in
- [Solved] Fatal error: Uncaught Error: Class ‘Imagick‘ not found
- [Solved] PHP Fatal error: Uncaught Elasticsearch\Common\Exceptions\NoNodesAvailableException: No alive nodes
- [Solved] iis cURL error 60: SSL certificate problem: unable to get local issuer certificate
- [Solved] WordPress Upgrade PHP 5.6 to 7.x Fatal error: Uncaught Error: Call to undefined function mysql_connect()
- [Solved] cURL error 60: SSL certificate problem: unable to get local issuer certificate
- Fastadmin Menu “cURL error 77: error setting certificate verify locations
- PHP curl error: SSL certificate problem: unable to get local issuer certificate settlement program
- Mac PHP Fatal error: Class ‘Memcache’ not found
- [WordPress Error] Fatal error undefined function is_network_admin()
- Fatal error: Function name must be a string in
- PHP: The Difference between \Throwable, \Error and \Exception
- [Solved] Fatal error: Class ‘think\Container‘ not found & [InvalidArgumentException] Could not find package
- Mac installs the php Swoole extension and appears Enable openssl support, require openssl library or fatal error:’openssl/ssl.h’ file not found
- How to Solve PHP Fatal error: Namespace declaration statement has to be the very first statement
- [Solved] Laravel admin Error: Symfony\Component\Debug\Exception\FatalThrowableError : Class ‘Doctrine\DBAL\Driver\PDOMySql\Driver’ not found
- [Solved] PHP getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL
- [Solved] Warning: Unknown: Failed to write session data using user defined save handler. (session.save_path:
- PHP encryption 3DES error Call to undefined function: mcrypt_module_open() solution