遇到一個比較奇怪的現象是使用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
這樣就可以了