Laravel使用AWS服务遇到的问题

2019-02-01  本文已影响0人  Allen_Go

1.本地使用aws的图片上传SDK遇到问题:

[2019-02-01 07:26:26] production.ERROR: Error executing "PutObject"on "https://xxxxx.s3.us-west-2.amazonaws.com/origin/product/003934000000/5c53f49fb7ff1.jpg";AWS HTTP error: cURL error 60: SSL certificate problem:unable to get local issuer certificate(see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

解决方法(原链接):

download the certifate from http://curl.haxx.se/ca/cacert.pem and define it in php.ini as following:

curl.cainfo = "C:\AppServ\cacert.pem"

上一篇下一篇

猜你喜欢

热点阅读