Reputation: 61
If I download a file from an HTTP URL, it is all OK and system("wget -O filename http://www.example.com")
downloads the file.
If I try to download a file from a HTTPS URL only (so I cannot reach it using HTTP) using system("wget -O filename https://www.example2.com")
, wget gives me an error:
"Impossible to verify the certificate of URL, released by "CERTIFICATE AUTORITY name": Impossible to verify locally the authority of the issuer. Impossible to establish a SSL connection."
The site doesn't require a password, in fact if I digit "https://www.example2.com/filename" in the browser, it downloads the file. What should I do? I want to underline that the browser cannot reach "http://www.example2.com/filename" and it doesn't download the file, but if I digit "https://www.example2.com/filename", the browser downloads the file. So HTTPS only.
Upvotes: 2
Views: 2708
Reputation: 75727
I think the --no-check-certificate
option is what you are looking for.
Check the HTTPS (SSL/TLS) Options
Upvotes: 2