Description
If a management API or B2B app uses certificates to identify clients, enable clientCertEnabled on a supported App Service plan. The application validates the certificate that App Service forwards.
Potential impact
Missing validation can admit unauthorized clients. A missed certificate renewal can interrupt valid connections.
Remediation
Use clientCertMode Required when clients must present certificates. For HTTP/2 or TLS 1.3, use Required or Optional and remove all certificate exclusion paths on the app. Use HTTPS. Validate the issuer and trust chain, expiry, revocation and client identity before authorizing actions.
Examples
The excerpt only enables the site’s certificate feature. Supply the app name, region and plan. Test valid, absent and invalid certificates and maintain issuance, rotation and revocation procedures.
Before
resource webSite 'Microsoft.Web/sites@2020-12-01' = {
name: 'webSite'
location: 'location1'
tags: {}
properties: {
enabled: true
}
}
After
resource webSite 'Microsoft.Web/sites@2020-12-01' = {
name: 'webSite'
location: 'location1'
tags: {}
properties: {
enabled: true
clientCertEnabled: true
}
}