问题原文
原帖链接 · Slinky · CC BY-SA 3.0
I need to add a .pem cert file to my default CA cert bundle but I don't know where the default CA Cert bundle is kept.
I need to append my new .pem file to this default bundle. I'd rather do that than specify my own location using --capath
cURL clearly knows where to look but I don't see any cURL commands that reveal the location. Is there a command that will reveal this location? How can I find it?
According to cURL:
Add the CA cert for your server to the existing default CA cert bundle.
The default path of the CA bundle used can be changed by running configure
with the --with-ca-bundle option pointing out the path of your choice.
Thanks
已采纳解答
原帖链接 · Flup · CC BY-SA 4.0
Running curl with strace might give you a clue.
strace curl https://www.google.com |& grep open
Lots of output, but right near the end I see:
open("/etc/ssl/certs/578d5c04.0", O_RDONLY) = 4
which /etc/ssl/certs/ is where my certificates are stored.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
