Skip to content

Commit

Permalink
Release new docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Milvus-doc-bot authored and Milvus-doc-bot committed Oct 9, 2024
1 parent 354ccfd commit 40e92c7
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions v2.4.x/site/en/adminGuide/tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ summary: Learn how to enable TLS proxy in Milvus.

TLS (Transport Layer Security) is an encryption protocol to ensure communication security. Milvus proxy uses TLS one-way and two-way authentication.

This topic describes how to enable TLS proxy in Milvus.
This topic describes how to enable TLS in Milvus proxy for both gRPC and RESTful traffics.

<div class="alert note">

Expand Down Expand Up @@ -588,7 +588,7 @@ Provide the path to `server.pem` and ensure the `server_name` matches the `Commo
from pymilvus import MilvusClient
client = MilvusClient(
uri="http://localhost:19530",
uri="https://localhost:19530",
secure=True,
server_pem_path="path_to/server.pem",
server_name="localhost"
Expand All @@ -603,7 +603,7 @@ Provide paths to `client.pem`, `client.key`, and `ca.pem`, and ensure the `serve
from pymilvus import MilvusClient
client = MilvusClient(
uri="http://localhost:19530",
uri="https://localhost:19530",
secure=True,
client_pem_path="path_to/client.pem",
client_key_path="path_to/client.key",
Expand All @@ -613,3 +613,19 @@ client = MilvusClient(
```

See [example_tls1.py](https://github.com/milvus-io/pymilvus/blob/master/examples/example_tls1.py) and [example_tls2.py](https://github.com/milvus-io/pymilvus/blob/master/examples/example_tls2.py) for more information.

## Connect to the Milvus RESTful server with TLS

For RESTful APIs, you can check tls by using the `curl` command.

### One-way TLS connection

```bash
curl --cacert path_to/ca.pem https://localhost:19530/v2/vectordb/collections/list
```

### Two-way TLS connection

```bash
curl --cert path_to/client.pem --key path_to/client.key --cacert path_to/ca.pem https://localhost:19530/v2/vectordb/collections/list
```

0 comments on commit 40e92c7

Please sign in to comment.