Triage and Remediation
Remediation
Using Console
Using Console
To remediate the Certificate Transparency misconfiguration in Azure using Azure console, please follow the below steps:
- Login to Azure portal (https://portal.azure.com/)
- Navigate to the App Service for which you want to enable Certificate Transparency.
- Click on “TLS/SSL settings” under the “Settings” section.
- Scroll down to the “Certificate Transparency” section.
- Toggle the “Certificate Transparency” switch to “On” position.
- Click on “Save” to save the changes.
Using CLI
Using CLI
To remediate the Certificate Transparency misconfiguration in Azure using Azure CLI, please follow the below steps:
- Open the Azure CLI on your local machine or use the Azure Cloud Shell.
-
Run the following command to create a new resource group:
Replace
<resource-group-name>
with a unique name for the resource group and<location>
with the location where you want to create the resource group. -
Run the following command to create a new web app:
Replace
<app-name>
with a unique name for the web app,<resource-group-name>
with the name of the resource group you created in step 2,<app-service-plan>
with the name of the app service plan you want to use, and--runtime "DOTNETCORE|3.1"
with the runtime version you want to use. -
Run the following command to enable Certificate Transparency for the web app:
Replace
<app-name>
with the name of the web app you created in step 3 and<resource-group-name>
with the name of the resource group you created in step 2. -
Verify that Certificate Transparency is enabled for the web app by running the following command:
Replace
<app-name>
with the name of the web app you created in step 3 and<resource-group-name>
with the name of the resource group you created in step 2. If the output of the command istrue
, then Certificate Transparency is enabled for the web app.
Using Python
Using Python
To remediate Certificate Transparency misconfiguration in Azure using Python, you can follow the below steps:
- First, you need to check if Certificate Transparency is enabled or not. You can use the Azure SDK for Python to check the status of Certificate Transparency. Here is the sample code to check the status:
- If Certificate Transparency is disabled, you need to enable it. You can use the same Azure SDK for Python to enable Certificate Transparency. Here is the sample code to enable it:
- After running the above code, Certificate Transparency will be enabled for your Azure web app.