Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
TheZhy-x opened this issue Aug 7, 2024 · 2 comments
Open
1 task done

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

TheZhy-x opened this issue Aug 7, 2024 · 2 comments
Labels
kind/feature Issues related to feature request from users

Comments

@TheZhy-x
Copy link

TheZhy-x commented Aug 7, 2024

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

@TheZhy-x TheZhy-x added the kind/feature Issues related to feature request from users label Aug 7, 2024
@congqixia
Copy link
Contributor

If your need to set credential certification file, https://github.com/milvus-io/milvus-sdk-go/blob/master/examples/tls/tls.go this example might provide some help

@TheZhy-x
Copy link
Author

TheZhy-x commented Aug 7, 2024

If your need to set credential certification file, https://github.com/milvus-io/milvus-sdk-go/blob/master/examples/tls/tls.go this example might provide some help

This example cannot work, either. Thank you all the same!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Issues related to feature request from users
Projects
None yet
Development

No branches or pull requests

2 participants