Skip to content

Commit

Permalink
Fix command to start tunnel with mTLS and add formatting (#907)
Browse files Browse the repository at this point in the history
Changed `client-crt.pem` to `server-crt.pem` in the three new guides
that use mTLS. Also formatted a `201` that was missing backticks. Simple
PR.
  • Loading branch information
DevMandy authored Aug 23, 2024
1 parent ce9eeaf commit 3113a59
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/guides/device-gateway/agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ curl \
https://api.ngrok.com/bot_users
```

You should receive a 201 response similar to the following:
You should receive a `201` response similar to the following:

```json
{
Expand Down Expand Up @@ -431,7 +431,7 @@ for `{PORT}`:
curl \
-H "Content-Type: application/json" -X \
POST https://agent.customer1.{YOUR_DOMAIN}/api/tunnels \
-d '{"name":"passthrough","proto":"tls","terminate_at": "agent", "addr":"{PORT}", "domain":"api.customer1.{YOUR_DOMAIN}","mutual_tls_cas":"ca-crt.pem", "crt":"client-crt.pem", "key":"server-key.pem"'
-d '{"name":"passthrough","proto":"tls","terminate_at": "agent", "addr":"{PORT}", "domain":"api.customer1.{YOUR_DOMAIN}","mutual_tls_cas":"ca-crt.pem", "crt":"server-crt.pem", "key":"server-key.pem"}'
```

Please note that these certificates should be used for testing purposes only. You should
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/site-to-site-apis-mtls/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ curl \
https://api.ngrok.com/bot_users
```

You should receive a 201 response similar to the following:
You should receive a `201` response similar to the following:

```json
{
Expand Down Expand Up @@ -433,7 +433,7 @@ for `{PORT}`:
curl \
-H "Content-Type: application/json" -X \
POST https://agent.customer1.{YOUR_DOMAIN}/api/tunnels \
-d '{"name":"passthrough","proto":"tls","terminate_at": "agent", "addr":"{PORT}", "domain":"api.customer1.{YOUR_DOMAIN}","mutual_tls_cas":"ca-crt.pem", "crt":"client-crt.pem", "key":"server-key.pem"'
-d '{"name":"passthrough","proto":"tls","terminate_at": "agent", "addr":"{PORT}", "domain":"api.customer1.{YOUR_DOMAIN}","mutual_tls_cas":"ca-crt.pem", "crt":"server-crt.pem", "key":"server-key.pem"}'
```

Please note that these certificates should be used for testing purposes only. You should
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/site-to-site-dbs-mtls/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ curl \
https://api.ngrok.com/bot_users
```

You should receive a 201 response similar to the following:
You should receive a `201` response similar to the following:

```json
{
Expand Down Expand Up @@ -437,7 +437,7 @@ for `{PORT}`:
curl \
-H "Content-Type: application/json" -X \
POST https://agent.customer1.{YOUR_DOMAIN}/api/tunnels \
-d '{"name":"passthrough","proto":"tls","terminate_at": "agent", "addr":"{PORT}", "domain":"db.customer1.{YOUR_DOMAIN}","mutual_tls_cas":"ca-crt.pem", "crt":"client-crt.pem", "key":"server-key.pem"'
-d '{"name":"passthrough","proto":"tls","terminate_at": "agent", "addr":"{PORT}", "domain":"db.customer1.{YOUR_DOMAIN}","mutual_tls_cas":"ca-crt.pem", "crt":"server-crt.pem", "key":"server-key.pem"}'
```

Please note that these certificates should be used for testing purposes only. You should
Expand Down

0 comments on commit 3113a59

Please sign in to comment.