close annoying "--no-check-certificate" of wget utility
如果想使用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. 👍
– Synetech
https://superuser.com/questions/508696/is-there-a-shorter-version-of-wget-no-check-certificate-option

浙公网安备 33010602011771号