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

前端 未结 26 2722
我寻月下人不归
我寻月下人不归 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条回答
  •  Happy的楠姐
    2020-11-22 08:43

    It is failing as cURL is unable to verify the certificate provided by the server.

    There are two options to get this to work:

    1. Use cURL with -k option which allows curl to make insecure connections, that is cURL does not verify the certificate.

    2. Add the root CA (the CA signing the server certificate) to /etc/ssl/certs/ca-certificates.crt

    You should use option 2 as it's the option that ensures that you are connecting to secure FTP server.

提交回复
热议问题