电信光猫,curl 访问 https 时提示证书错误
curl: (77) error setting certificate verify locations:
CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
但是 /etc/pki/tls/certs/ca-bundle.crt 目录为只读,不能把证书文件导入进去
现在只能每次带 curl --cacert 参数指定证书访问 https 地址,有点烦啊,各位大神有没有什么办法能更改 curl 默认证书位置的
curl: (77) error setting certificate verify locations:
CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
但是 /etc/pki/tls/certs/ca-bundle.crt 目录为只读,不能把证书文件导入进去
现在只能每次带 curl --cacert 参数指定证书访问 https 地址,有点烦啊,各位大神有没有什么办法能更改 curl 默认证书位置的