Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持CURL_CA_BUNDLE环境变量以支持运行时设置cacert #33

Open
hcconquer opened this issue Jul 8, 2024 · 0 comments
Open

支持CURL_CA_BUNDLE环境变量以支持运行时设置cacert #33

hcconquer opened this issue Jul 8, 2024 · 0 comments

Comments

@hcconquer
Copy link

hcconquer commented Jul 8, 2024

libcurl默认的cacert路径是CURL_CA_BUNDLE,这个路径在编译时确定,在ContOS默认的是/etc/pki/tls/certs/ca-bundle.crt,在Ubuntu中默认的是/etc/ssl/certs/ca-certificates.crt,那么如果在ContOS中编译在Ubuntu中运行,会出现报错:ErrorCode=NetworkError, ErrorMessage=error setting certificate file: /etc/pki/tls/certs/ca-bundle.crt
希望参考curl的实现,运行时CURL_CA_BUNDLE,来支持运行时设置cacert的路径。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant