Skip to content

Commit

Permalink
docs: add example link. (#1582)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin committed Jan 4, 2023
1 parent 66d9434 commit c4ba664
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/en/latest/tutorials/mtls.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ In APISIX Ingress Controller, we use [ApisixTls](../concepts/apisix_tls.md) reso

ApisixTls requires a secret which field `cert` and `key` contains the certificate and private key.

A secret yaml containing the certificate mentioned above [is here](https://github.com/apache/apisix-ingress-controller/blob/master/docs/en/latest/tutorials/mtls/server-secret.yaml). In this guide, we use this as an example.
The keys and certificates used in the examples [are here](https://github.com/apache/apisix-ingress-controller/tree/master/docs/en/latest/tutorials/mtls).

In this guide, we use this as an example.

```bash
kubectl apply -f ./mtls/server-secret.yaml -n default
Expand Down Expand Up @@ -156,6 +158,8 @@ Now, we configured SSL successfully.

Like `server-secret`, we will create a `client-ca-secret` to store the CA that verify the certificate client presents.

The keys and certificates used in the examples [are here](https://github.com/apache/apisix-ingress-controller/tree/master/docs/en/latest/tutorials/mtls).

```bash
kubectl apply -f ./mtls/client-ca-secret.yaml -n default
```
Expand Down Expand Up @@ -202,6 +206,8 @@ That means our mutual authentication has been enabled successfully.

Now, we need to transfer our client cert to the APISIX container to verify the mTLS functionality.

The keys and certificates used in the examples [are here](https://github.com/apache/apisix-ingress-controller/tree/master/docs/en/latest/tutorials/mtls).

```bash
# Transfer client certificate
kubectl -n apisix cp ./user.key <APISIX_POD_NAME>:/tmp/user.key
Expand Down

0 comments on commit c4ba664

Please sign in to comment.