How do I fix certificate errors when running wget on an HTTPS URL in Cygwin?

前端 未结 10 1258
遥遥无期
遥遥无期 2020-12-07 07:40

For example, running wget https://www.dropbox.com results in the following errors:

ERROR: The certificate of `www.dropbox.com\' is not trusted.
         


        
10条回答
  •  有刺的猬
    2020-12-07 07:56

    I have the similar problem and fixed it by temporarily disabling my antivirus(Kaspersky Free 18.0.0.405). This AV has HTTPS interception module that automatically self-sign all certificates it finds in HTTPS responses.

    Wget from Cygwin does not know anything about AV root certificate, so when it finds that website's certificate was signed with non trust certificate it prints that error.

    To fix this permanently without disabling AV you should copy the AV root certificate from Windows certificate store to /etc/pki/ca-trust/source/anchors as .pem file(base64 encoding) and run update-ca-trust

提交回复
热议问题