When I try to use wget on an HTTPS site, I need to add:
wget --no-check-certificate https://...
This is rather long, so does a shortcut exist?
Try this: (assumes *nix)
echo "check_certificate = off" >> ~/.wgetrc
Then ever after, wget will act like you specified the --no-check-certificate switch. More info at https://www.gnu.org/software/wget/manual/wget.html#Wgetrc-Syntax or https://www.gnu.org/software/wget/manual/wget.html#Wgetrc-Location
From what I can see there's no shorter version of the --no-check-certificate option.
So you could always make an alias to it. alias wgetncc='wget --no-check-certificate' (Change 'wgetncc' to whatever you please.)
Type that into the command line and after that, every time you run wgetncc it will be a shortcut to wget --no-check-certificate
If you want this to be an alias every time you login, you will have to place this in an alias file or something equivalent. It depends on the shell you are using.
alias?
– Karan
Nov 21 '12 at 21:29
When I try to use wget on an HTTPS site, I need to add:
wget --no-check-certificate https://...
Until not solve, using this also.
check_certificate=off # --no-check-certificatewill result in syntax error as the config won't load properly. Other than that, omitting spaces around the assignment sign is OK. – Jun 19 '17 at 16:07wget. – Synetech May 04 '18 at 02:27