Problem with the SSL CA cert (path access rights?) 的解决方法


Problem with the SSL CA cert (path access rights?) 显示的是CA问题: 首先,颁发server证书的CA是没有问题的,那么应该是curl使用的ca-bandle.crt 有问题,这很可能意味着您已经删除了/etc/pki/tls/certs/ 目录下的某些文件或设置了无效的权限。

yum reinstall openssl ca-certificates -y
ll /etc/pki/tls/certs/ca-bundle.crt    #查看是否存在

然后从这个网站(https://curl.haxx.se/docs/caextract.html)上下载最新的cacert.pem 然后重命名为/etc/ssl/certs/ca-certificates.crt

curl --remote-name --time-cond cacert.pem https://curl.haxx.se/ca/cacert.pem -O /root/ca-certificates.crt
cp cacert.pem /etc/ssl/certs/ca-certificates.crt

原文链接:https://blog.csdn.net/m0_37886429/article/details/79107840

标签:

文章发布时间:2019-12-25