Skip to content

Getting TLS to work with Rust client #472

@MaoZiming

Description

@MaoZiming

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions