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?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityFrom 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
?
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
check_certificate=off # --no-check-certificate
will result in syntax error as the config won't load properly. Other than that, omitting spaces around the assignment sign is OK.