Skip to content

Commit 1d8467d

Browse files
committed
Fix mTLS example
Signed-off-by: Albert Lombarte <albert@krakend.io>
1 parent aa75c64 commit 1d8467d

1 file changed

Lines changed: 17 additions & 13 deletions

File tree

authorization/mutual-authentication.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ To enable it you need a configuration like this:
3333
```json
3434
{
3535
"version": 3,
36-
"$schema": "https://www.krakend.io/schema/krakend.json",
36+
"$schema": "https://www.krakend.io/schema/v{{< product minor_version >}}/krakend.json",
3737
"tls": {
3838
"enable_mtls": true,
3939
"ca_certs": [
@@ -137,18 +137,22 @@ The KrakenD configuration needed is as follows (no endpoints used for this demo)
137137

138138
```json
139139
{
140-
"version": 3,
141-
"$schema": "https://www.krakend.io/schema/v{{< product minor_version >}}/krakend.json",
142-
"port": 443,
143-
"tls": {
144-
"public_key": "./server.crt",
145-
"private_key": "./server.key",
146-
"enable_mtls": true,
147-
"ca_certs": [
148-
"./rootCA.pem"
149-
],
150-
"disable_system_ca_pool": true
151-
}
140+
"version": 3,
141+
"$schema": "https://www.krakend.io/schema/v{{< product minor_version >}}/krakend.json",
142+
"port": 443,
143+
"tls": {
144+
"enable_mtls": true,
145+
"ca_certs": [
146+
"rootCA.pem"
147+
],
148+
"keys": [
149+
{
150+
"private_key": "./server.key",
151+
"public_key": "./server.crt"
152+
},
153+
],
154+
"disable_system_ca_pool": true
155+
}
152156
}
153157
```
154158

0 commit comments

Comments
 (0)