結果卻出現
[root@srv qoo]# wget --spider --no-check-certificate https://raw.githubusercontent.com/***********
--15:28:50-- https://raw.githubusercontent.com/***********
Resolving raw.githubusercontent.com... 151.101.88.133
Connecting to raw.githubusercontent.com|151.101.88.133|:443... connected.
WARNING: certificate common name `www.github.com' doesn't match requested host name `raw.githubusercontent.com'.
HTTP request sent, awaiting response... 200 OK
Length: 181940 (178K) [text/plain]
200 OK
google 以後發現是某些版本 wget 的問題、並建議可以改用 curl 來下載檔案
curl -L --remote-name https://raw.githubusercontent.com/***********
當然也可以使用 git 來做、只是抓個檔案而以、就順手寫 script 用 wget 了
reference:https://confluence.atlassian.com/jirakb/error-certificate-common-name-doesn-t-match-requested-host-name-737771971.html
0 意見:
張貼留言