This error occurs when the SSL certificate used by your Laravel application is not trusted by the client's browser.

The most common cause of this error is the use of a self-signed SSL certificate. Self-signed certificates are not issued by a trusted third-party certificate authority, which means that the client's browser cannot validate the authenticity of the certificate.

To fix this issue, you can either purchase an SSL certificate from a trusted certificate authority or obtain a free SSL certificate from Let's Encrypt. Alternatively, you can also bypass the SSL verification process by adding the following line of code in your Laravel application before making any HTTPS requests:

$guzzleClient = new \GuzzleHttp\Client(['verify' => false]);

However, it is not recommended to disable SSL verification as it can compromise the security of your application

laravel SSL certificate problem self signed certificate in certificate chain

原文地址: https://www.cveoy.top/t/topic/coWm 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录