ArchLinux中证书错误解决方案

ca-certificates 更新

x509: failed to load system roots and no roots provided.

curl error: Problem with the SSL CA cert (path? access rights?)


本地 CA 证书的处理方式发生了变化。

若您有自行添加的信任证书,需要:

将 /usr/local/share/ca-certificates/*.crt 移动到 /etc/ca-certificates/trust-source/anchors/ 下

对 /etc/ssl/certs/*.pem 进行上述操作,并将它们重命名为 *.crt

运行 trust extract-compat

另见 man 8 update-ca-trust 及 trust --help 。

原文地址:https://www.cnblogs.com/itxdm/p/5554500.html