Is there a shorter version of wget --no-check-certificate option?
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?
Solution 1:
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.
Solution 2:
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