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

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

 

posted @   rebeca8  阅读(5015)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示