码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS 6.x下wget 下载提示 Unable to locally verify the issuer’s authority 完美解决方案

时间:2018-05-27 16:21:09      阅读:308      评论:0      收藏:0      [点我收藏+]

标签:erro   ror   call   line   解决方法   org   lin   linux   use   

CentOS 6.x下wget 下载提示 Unable to locally verify the issuer’s authority 完美解决方案

栏目:Linux 作者:小天 点击: 1,453 次

 

升级了wget 和 OpenSSL后,下载https链接的文件时出现提示:ERROR: cannot verify ftp.gnu.org‘s certificate,.... Unable to locally verify the issuer‘s authority. 如下图:
技术分享图片

其实解决方法很简单,执行以下命令即可解决:

将他设置到CURL的环境变量 CURL_CA_BUNDLE 即:
export CURL_CA_BUNDLE = ~/.ssl/ca-bundle.crt
(编辑文件 ~/.profile, ~/.bash_profile 等文件,增加以上行让他永久生效)

作者官方地址:https://gist.github.com/chetan/2917915#file-fix_wget_ca-sh
mk-ca-bundle 工具 CURL官方说明:https://curl.haxx.se/docs/mk-ca-bundle.html

 

CentOS 6.x下wget 下载提示 Unable to locally verify the issuer’s authority 完美解决方案

标签:erro   ror   call   line   解决方法   org   lin   linux   use   

原文地址:https://www.cnblogs.com/zafu/p/9096210.html

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