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

前端 未结 10 1337
遥遥无期
遥遥无期 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:51

    I had a similar problem with wget to my own live web site returning errors after installing a new SSL certificate. I'd already checked several browsers and they didn't report any errors:

    wget --no-cache -O - "https://example.com/..." ERROR: The certificate of ‘example.com’ is not trusted. ERROR: The certificate of ‘example.com’ hasn't got a known issuer.

    The problem was I had installed the wrong certificate authority .pem/.crt file from the issuer. Usually they bundle the SSL certificate and CA file as a zip file, but DigiCert email you the certificate and you have to figure out the matching CA on your own. https://www.digicert.com/help/ has an SSL certificate checker which lists the SSL authority and the hopefully matching CA with a nice blue link graphic if they agree:

    `SSL Cert: Issuer GeoTrust TLS DV RSA Mixed SHA256 2020 CA-1

    CA: Subject GeoTrust TLS DV RSA Mixed SHA256 2020 CA-1 Valid from 16/Jul/2020 to 31/May/2023 Issuer DigiCert Global Root CA`

提交回复
热议问题