tikv / tikv/client-rust

Getting TLS to work with Rust client

Open
#472 2 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.