wget递归下载网站资源

wget -r -p -np -k http://archive.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/

在下载https站点时:

ERROR: certificate common name `*.c.ssl.fastly.net‘ doesn‘t match requested host name `bootstrap.pypa.io‘.
To connect to bootstrap.pypa.io insecurely, use `--no-check-certificate‘.
无法建立 SSL 连接。
wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py 
因为wget在使用HTTPS协议时,默认会去验证网站的证书,而这个证书验证经常会失败。加上"--no-check-certificate"选项,就能排除掉这个错误。

猜你喜欢

转载自www.cnblogs.com/sui84/p/11441269.html