Getting TLS to work with Rust client
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 425
- Forks
- 163
- Avg merge
- 10h 51m
- Merged PRs (30d)
- 3
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the cargo run --example raw command from the issue and compare its TLS and API behavior with the working curl request. Inspect raw.rs, including the attempted v1 API change; done means the Rust client connects to the PD endpoint and returns the expected members response with the supplied CA, certificate, and key.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- networking, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100