Linux使用curl命令報錯curl error: Problem with the SSL CA cert (path access rights?)


遇到一個比較奇怪的現象是使用curl報錯curl error: Problem with the SSL CA cert (path access rights?) ,而使用wget命令同樣也報錯與ca方面相關的錯誤,Unable to locally verify the issuer’s authority。
所以需要解決一下:
1、先打開官網https://curl.se/docs/caextract.html
然后下載最新的ca文件放到Linux系統上

2、然后放在下面這個目錄

[root@localhost certs]# pwd
/etc/pki/tls/certs

3、重命名為ca-bundle.crt

[root@localhost certs]# ls
ca-bundle.crt  make-dummy-cert  Makefile  renew-dummy-cert

這樣就可以了


免責聲明!

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



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