Linux下載文件時報錯 To connect to ohse.de insecurely, use ‘--no-check-certificate’.


遠程調用下載文件直接用wget就可以,一般文件路徑類型是http。如果有遇到是https就會下載出錯。

錯誤如下:

[root@vmu010226-node1 tmp]# wget https://www.ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz
--2014-11-25 13:44:16--  http://www.ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz
Resolving www.ohse.de... 144.76.239.252
Connecting to www.ohse.de|144.76.239.252|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz [following]
--2014-11-25 13:44:17--  https://ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz
Resolving ohse.de... 144.76.239.252
Connecting to ohse.de|144.76.239.252|:443... connected.
ERROR: certificate common name “www.ohse.de” doesn’t match requested host name “ohse.de”.
To connect to ohse.de insecurely, use ‘--no-check-certificate’.

 

只需要在wget后面加上--no-check-certificate就可以,需要一個認證下載指令而已。

 

wget  --no-check-certificate  https://www.ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz

好的,現在問題解決。 O(∩_∩)O~

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM