Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

How to connect milvus with a tls.crt? #798

Open
@TheZhy-x

Description

@TheZhy-x

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe.

Here' s my code:

  1. milvusClient, err := client.NewClient(ctx, client.Config{ Address: "xxx:443", Username: "root", Password: "Milvus", EnableTLSAuth: true, DialOptions: []grpc.DialOption{ grpc.WithTransportCredentials(creds), }, })
  2. milvusClient, err := client.NewGrpcClient( ctx, "http://root:Milvus@xxx:443", grpc.WithTransportCredentials(creds), )

There are some error I' ve met:

  1. rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority"
  2. rpc error: code = Unavailable desc = connection closed before server preface received

Anybody ever met this above can help me? Thanks in advance!

Describe the solution you'd like.

No response

Describe an alternate solution.

No response

Anything else? (Additional Context)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureIssues related to feature request from users

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions