curl: (60) SSL certificate problem: unable to get local issuer certificate

前端 未结 26 2708
我寻月下人不归
我寻月下人不归 2020-11-22 08:09
root@sclrdev:/home/sclr/certs/FreshCerts# curl --ftp-ssl --verbose ftp://{abc}/ -u trup:trup --cacert /etc/ssl/certs/ca-certificates.crt
* About to connect() to {abc         


        
26条回答
  •  無奈伤痛
    2020-11-22 08:25

    1. Download https://curl.haxx.se/ca/cacert.pem

    2. After download, move this file to your wamp server.

      For exp: D:\wamp\bin\php\

    3. Then add the following line to the php.ini file at the bottom.

    curl.cainfo="D:\wamp\bin\php\cacert.pem"

    1. Now restart your wamp server.

提交回复
热议问题