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

 


免責聲明!

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



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