How to get the list of certificates under an Azure App service using either Azure CLI or REST API with thumbprint and expiration details?
Asked
Active
Viewed 2,364 times
1
-
Is this what you are looking for: `az webapp config ssl list` - https://learn.microsoft.com/en-us/cli/azure/webapp/config/ssl?view=azure-cli-latest#az-webapp-config-ssl-list – Gaurav Mantri Mar 15 '22 at 06:23
1 Answers
1
Using Azure CLI
List SSL certificates for web applications.
To build a list of SSL certificates in Azure CLI.
az webapp config ssl list --resource-group MyResourceGroup
To display the details of a web app's SSL certificate.
az webapp config ssl show --resource-group MyResourceGroup --certificate-name cname.mycustomdomain.com
Using REST API
Get all certifications for a subscription
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Web/certificates?api-version=2021-02-01
and with optional parameters
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Web/certificates?api-version=2021-02-01&$filter={$filter}

Harshitha Veeramalla
- 1,515
- 2
- 10
- 11