laravel : cURL error 60: SSL certificate unable to get local issuer certificate

后端 未结 3 548
不思量自难忘°
不思量自难忘° 2021-01-07 15:17

Ubuntu: 15.04

Laravel: 5.4.32

GuzzleHttp\\Guzzle: ~6.0

Hi there

I have the following error when I am trying to reset a password using Laravel

3条回答
  •  心在旅途
    2021-01-07 16:04

    I had the similar problem. No need to change /vendor/guzzlehttp/guzzle/src/Client.php

    Maybe this can help you.

    1. Download cacert.pem file from https://curl.haxx.se/docs/caextract.html
      Put the cacert.pem somewhere you like.

    2. Edit php.ini

    two lines:

    curl.cainfo=D:/Servers/php/sslfiles/cacert.pem  
    openssl.cafile=D:/Servers/php/sslfiles/cacert.pem  
    
    1. Restart apache httpd.

提交回复
热议问题