简体   繁体   中英

List all the certificates under a azure app service

How to get the list of certificates under an Azure App service using either Azure CLI or REST API with thumbprint and expiration details?

在此处输入图像描述

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}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM