allejok96 / jw-scripts

Index or download videos and sound recordings from jw.org.
GNU General Public License v3.0
49 stars 10 forks source link

curl failed to verify the legitimacy of the server #17

Closed okarcheboy closed 4 years ago

okarcheboy commented 5 years ago

I would like to thank you for this script. It will help greatly with family worship. We like to watch the latest videos but often experience buffering. With this I can automate the downloads.

I did run across one issue with my installation:

Curl reports that it "failed to verify the legitimacy of the server".

I'm sure its a problem with my certs but couldn't figure out how to resolve it on Windows 10 using curl 7.58.0 (x86_64-w64-mingw32) Release-Date: 2018-01-24

My solution was to add -k to the call for curl in parse.py as follows:

if curl_path:
    proc = [curl_path, url, '-ko', file]

Using the insecure method may not best. Perhaps you could suggest a better/more elegant solution.

Thanks

allejok96 commented 5 years ago

I've had a similar issue on Debian. Certs... Ugh.

Seems like curl could be built with different sets of certs: https://curl.haxx.se/docs/sslcerts.html

Run curl -V and see if it says WinSSL somewhere in there. If it doesn't, see if you can download a curl compiled with "Secure Transport" or "Schannel" support.

allejok96 commented 5 years ago

Have we got any news on this one? Adding -k makes it work, naturally, but the problem remains.

allejok96 commented 4 years ago

Since there's no new info on this one, I'm closing it and hoping people have updated their certs by now