Triage and Remediation
Remediation
Using Console
Using Console
To remediate the “Client Certificates Disabled” misconfiguration in Azure using the Azure console, follow these steps:
- Log in to the Azure portal (https://portal.azure.com/).
- Navigate to the App Service that needs to be remediated.
- Click on the “TLS/SSL settings” option from the left-hand menu.
- Scroll down to the “Client certificates” section and ensure that the “Client certificates required” option is set to “On”.
- If the “Client certificates required” option is not set to “On”, click on the “Edit” button.
- In the “Client certificates” section, select the “On” option and then click on the “Save” button.
- Once the changes are saved, the App Service will now require client certificates to be presented during SSL/TLS negotiation.
- Verify that the change has been successfully applied by testing the SSL/TLS connection to the App Service using a client certificate.
Using CLI
Using CLI
To remediate the “Client Certificates Disabled” misconfiguration in Azure using Azure CLI, follow these steps:
- Open the Azure CLI terminal and login to your Azure account.
-
Run the following command to list all the App Service Plans in your subscription:
- Identify the App Service Plan that is affected by the misconfiguration.
-
Run the following command to enable client certificates for the App Service Plan:
Replace
<app-service-plan-name>
with the name of the App Service Plan and<resource-group-name>
with the name of the resource group that contains the App Service Plan. -
Verify that client certificates are enabled for the App Service Plan by running the following command:
This command should return
true
, indicating that client certificates are now enabled for the App Service Plan. - Repeat the above steps for any other affected App Service Plans in your subscription.
Using Python
Using Python
To remediate the “Client Certificates Disabled” misconfiguration in Azure using Python, you can use the Azure SDK for Python. Follow these steps:After running these steps, the “Client Certificates Disabled” misconfiguration should be remediated for the specified App Service Plan in Azure.
- Install the Azure SDK for Python using pip:
- Authenticate with Azure using a Service Principal:
- Get the App Service Plan resource group and name:
- Enable Client Certificates for the App Service Plan: