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