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

这样就可以了

posted @ 2021-03-08 10:54  峰哥ge  阅读(2854)  评论(0编辑  收藏  举报