码迷,mamicode.com
首页 > 系统相关 > 详细

Linux下载文件时报错 To connect to ohse.de insecurely, use ‘--no-check-certificate’.

时间:2014-11-25 15:50:02      阅读:334      评论:0      收藏:0      [点我收藏+]

标签:style   http   io   ar   color   os   sp   strong   文件   

远程调用下载文件直接用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~

 

Linux下载文件时报错 To connect to ohse.de insecurely, use ‘--no-check-certificate’.

标签:style   http   io   ar   color   os   sp   strong   文件   

原文地址:http://www.cnblogs.com/xiaoblog/p/4120873.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!