client-rust icon indicating copy to clipboard operation
client-rust copied to clipboard

Getting TLS to work with Rust client

Open MaoZiming opened this issue 10 months ago • 2 comments

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.

MaoZiming avatar Jan 23 '25 23:01 MaoZiming

Which commit are you using ?

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

pingyu avatar Jan 23 '25 23:01 pingyu

@pingyu Thanks I believe I am on the latest commit

MaoZiming avatar Jan 24 '25 00:01 MaoZiming