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

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

    I had this problem with Digicert of all CAs. I created a digicertca.pem file that was just both intermediate and root pasted together into one file.

    curl https://cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem
    curl https://cacerts.digicert.com/DigiCertSHA2SecureServerCA.crt.pem
    
    curl -v https://mydigisite.com/sign_on --cacert DigiCertCA.pem
    ...
    *  subjectAltName: host "mydigisite.com" matched cert's "mydigisite.com"
    *  issuer: C=US; O=DigiCert Inc; CN=DigiCert SHA2 Secure Server CA
    *  SSL certificate verify ok.
    > GET /users/sign_in HTTP/1.1
    > Host: mydigisite.com
    > User-Agent: curl/7.65.1
    > Accept: */*
    ...
    

    Eorekan had the answer but only got myself and one other to up vote his answer.

提交回复
热议问题