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

Getting TLS to work with Rust client #472

Open
MaoZiming opened this issue Jan 23, 2025 · 2 comments
Open

Getting TLS to work with Rust client #472

MaoZiming opened this issue Jan 23, 2025 · 2 comments

Comments

@MaoZiming
Copy link

MaoZiming commented Jan 23, 2025

Hi, I have bene trying to call:

cargo run --example raw -- --pd "[endpoint]" --ca ca.crt --cert tls.cert --key tls.key

But getting: "PD cluster failed to response".
However,

curl -k --cacert ca.crt --cert tls.crt --key tls.key [endpoint/pd/api/v1/members]

will work.
I did try to modify raw.rs to use v1 API, but getting the same output.

@pingyu
Copy link
Collaborator

pingyu commented Jan 23, 2025

Which commit are you using ?

Please check that whether it is the same issue with #444.

@MaoZiming
Copy link
Author

@pingyu Thanks I believe I am on the latest commit

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

2 participants