Skip to content

Commit 3ca1c4a

Browse files
committed
doc: [124686] Specify SHA-1 thumbprint
1 parent 0579359 commit 3ca1c4a

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

articles/api-management/validate-client-certificate-policy.md

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ For more information about custom CA certificates and certificate authorities, s
5454

5555
| Name | Description | Required | Default |
5656
| ------------------------------- | -----------------| -------- | ----------- |
57-
| validate-revocation | Boolean. Specifies whether certificate is validated against online revocation list. Policy expressions aren't allowed. | No | `true` |
58-
| validate-trust| Boolean. Specifies if validation should fail in case chain cannot be successfully built up to trusted CA. Policy expressions aren't allowed. | No | `true` |
59-
| validate-not-before | Boolean. Validates value against current time. Policy expressions aren't allowed.| No| `true` |
60-
| validate-not-after | Boolean. Validates value against current time. Policy expressions aren't allowed.| No| `true`|
61-
| ignore-error | Boolean. Specifies if policy should proceed to the next handler or jump to on-error upon failed validation. Policy expressions aren't allowed. | No | `false` |
57+
| validate-revocation | Boolean. Specifies whether certificate is validated against online revocation list. Policy expressions aren't allowed. | No | `true` |
58+
| validate-trust| Boolean. Specifies if validation should fail in case chain cannot be successfully built up to trusted CA. Policy expressions aren't allowed. | No | `true` |
59+
| validate-not-before | Boolean. Validates value against current time. Policy expressions aren't allowed.| No| `true` |
60+
| validate-not-after | Boolean. Validates value against current time. Policy expressions aren't allowed.| No| `true`|
61+
| ignore-error | Boolean. Specifies if policy should proceed to the next handler or jump to on-error upon failed validation. Policy expressions aren't allowed. | No | `false` |
6262

6363
## Elements
6464

@@ -70,22 +70,22 @@ For more information about custom CA certificates and certificate authorities, s
7070

7171
| Name | Description | Required | Default |
7272
| ------------------------------- | -----------------| -------- | ----------- |
73-
| thumbprint | Certificate thumbprint. | No | N/A |
73+
| thumbprint | Certificate SHA-1 thumbprint. | No | N/A |
7474
| serial-number | Certificate serial number. | No | N/A |
7575
| common-name | Certificate common name (part of Subject string). | No | N/A |
7676
| subject | Subject string. Must follow format of Distinguished Name. | No | N/A |
7777
| dns-name | Value of dnsName entry inside Subject Alternative Name claim. | No | N/A |
7878
| issuer-subject | Issuer's subject. Must follow format of Distinguished Name. | No | N/A |
79-
| issuer-thumbprint | Issuer thumbprint. | No | N/A |
80-
| issuer-certificate-id | Identifier of existing certificate entity representing the issuer's public key. Mutually exclusive with other issuer attributes. | No | N/A |
79+
| issuer-thumbprint | Issuer SHA-1 thumbprint. | No | N/A |
80+
| issuer-certificate-id | Identifier of existing certificate entity representing the issuer's public key. Mutually exclusive with other issuer attributes. | No | N/A |
8181

8282
## Usage
8383

8484
- [**Policy sections:**](./api-management-howto-policies.md#sections) inbound
8585
- [**Policy scopes:**](./api-management-howto-policies.md#scopes) global, workspace, product, API, operation
8686
- [**Gateways:**](api-management-gateways-overview.md) classic, v2, consumption, self-hosted, workspace
8787

88-
## Example
88+
## Examples
8989

9090
The following example validates a client certificate to match the policy's default validation rules and checks whether the subject and issuer name match specified values.
9191

@@ -104,6 +104,25 @@ The following example validates a client certificate to match the policy's defau
104104
</validate-client-certificate>
105105
```
106106

107+
The following example performs a stricter validation by cheking whether the subject thumbprint and the issuer thumbprint match specified values.
108+
109+
```xml
110+
<validate-client-certificate
111+
validate-revocation="true"
112+
validate-trust="true"
113+
validate-not-before="true"
114+
validate-not-after="true"
115+
ignore-error="false">
116+
<identities>
117+
<identity
118+
thumbprint="5f53963cfc280280e238424b82bd497d345b2219"
119+
issuer-thumbprint="9d0c166a4446765a87c0ed3aa52650993129eaa4" />
120+
</identities>
121+
</validate-client-certificate>
122+
```
123+
124+
125+
107126
## Related policies
108127

109128
* [Authentication and authorization](api-management-policies.md#authentication-and-authorization)

0 commit comments

Comments
 (0)