如果想使用alias:
alias wgetncc='wget --no-check-certificate'
请往下看:
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
A thing to note: don't add comments in the same line as the directive itself. 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.
– user373230
This even works with Windows ports of wget.
标签:certificate,no,--,https,wget,check From: https://www.cnblogs.com/profesor/p/17997819