Skip to content

Commit

Permalink
Test CodeTabs
Browse files Browse the repository at this point in the history
  • Loading branch information
danielehc committed Sep 18, 2024
1 parent 7ec4859 commit 7a71843
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions website/content/docs/security/encryption/mtls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ Next, configure your client agents with the same method you used to [configure t

The only file you need on the local disk to configure the Consul client agents using auto-encryption is the CA certificate `consul-agent-ca-.pem`.

<CodeBlockConfig heading="HCL">
<CodeTabs tabs={[ "HCL", "JSON" ]}>

```hcl
addresses = {
Expand All @@ -279,10 +279,6 @@ auto_encrypt = {
}
```

</CodeBlockConfig>

<CodeBlockConfig heading="JSON">

```json
{
"addresses": {
Expand All @@ -305,7 +301,7 @@ auto_encrypt = {
}
```

</CodeBlockConfig>
</CodeTabs>

</Tab>

Expand All @@ -324,7 +320,7 @@ The client certificate is also signed by the same CA used for the server certifi

Distribute the client certificates and the CA certificate `consul-agent-ca.pem` to every Consul client in the datacenter. Then add them to the client agent configuration.

<CodeBlockConfig heading="HCL">
<CodeTabs tabs={[ "HCL", "JSON" ]}>

```hcl
addresses = {
Expand All @@ -345,10 +341,6 @@ tls {
}
```

</CodeBlockConfig>

<CodeBlockConfig heading="JSON">

```json
{
"addresses": {
Expand All @@ -370,7 +362,7 @@ tls {
}
```

</CodeBlockConfig>
</CodeTabs>

</Tab>

Expand Down

0 comments on commit 7a71843

Please sign in to comment.