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

前端 未结 26 2440
我寻月下人不归
我寻月下人不归 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:48

    On windows - if you want to run from cmd

    > curl -X GET "https://some.place"
    

    Download cacert.pem from https://curl.haxx.se/docs/caextract.html

    Set permanently the environment variable:

    CURL_CA_BUNDLE = C:\somefolder\cacert.pem
    

    And reload the environment by reopening any cmd window in which you want to use curl; if Chocolatey is installed you can use:

    refreshenv
    

    Now try again

    Reason for the trouble: https://laracasts.com/discuss/channels/general-discussion/curl-error-60-ssl-certificate-problem-unable-to-get-local-issuer-certificate/replies/95548

提交回复
热议问题