Skip to content

Commit 58b1731

Browse files
Incorporated the review comments.
1 parent 640f8e8 commit 58b1731

File tree

1 file changed

+14
-21
lines changed

1 file changed

+14
-21
lines changed

articles/container-apps/client-certificate-authorization.md

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: container-apps
55
author: craigshoemaker
66
ms.service: azure-container-apps
77
ms.topic: how-to
8-
ms.date: 04/01/2025
8+
ms.date: 04/03/2025
99
ms.author: cshoe
1010
---
1111

@@ -51,8 +51,8 @@ Get the ARM ID of the Azure Container App:
5151

5252
```azurecli
5353
APP_ID=$(az containerapp show \
54-
--name <app-name> \
55-
--resource-group <resource-group> \
54+
--name <APP_NAME> \
55+
--resource-group <RESOURCE_GROUP> \
5656
--query id \
5757
--output tsv)
5858
```
@@ -62,7 +62,7 @@ Patch the clientCertificateMode Property on the App:
6262
```azurecli
6363
az rest \
6464
--method patch \
65-
--url "https://management.azure.com/$APP_ID?api-version=<api-version>" \
65+
--url "https://management.azure.com/$APP_ID?api-version=<API_VERSION>" \
6666
--body '{
6767
"properties": {
6868
"configuration": {
@@ -73,23 +73,16 @@ az rest \
7373
}
7474
}'
7575
```
76-
When `require` is set, the client must provide a certificate.
77-
When `accept` is set, the certificate is optional. If the client provides a certificate, it is passed to the app in the X-Forwarded-Client-Cert header, as a semicolon-separated list. For example:
78-
79-
```html
80-
<button style="margin: 0px;">
81-
</button>
82-
83-
<script>
84-
const hash = '....';
85-
const cert = `-----BEGIN CERTIFICATE-----
86-
....
87-
-----END CERTIFICATE-----`;
88-
89-
const chain = `-----BEGIN CERTIFICATE-----
90-
...
91-
-----END CERTIFICATE-----`;
92-
</script>
76+
77+
- When `require` is set, the client must provide a certificate.
78+
79+
- When `accept` is set, the certificate is optional. If the client provides a certificate, it is passed to the app in the `X-Forwarded-Client-Cert` header, as a semicolon-separated list. For example:
80+
81+
> [!NOTE]
82+
> Before you use the following example, make sure to replace the placeholders surrounded by `<>` with your own values.
83+
84+
```text
85+
Hash=<HASH_VALUE>;Cert="-----BEGIN CERTIFICATE-----<CERTIFICATE_VALUE>";Chain="-----BEGIN CERTIFICATE-----<CERTIFICATE_VALUE>";
9386
```
9487

9588
## Next Steps

0 commit comments

Comments
 (0)