简体   繁体   English

列出一个azure应用服务下的所有证书

[英]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?如何使用 Azure 应用程序服务使用 Azure CLI 或 REST API 获取带有指纹和到期详细信息的证书列表?

在此处输入图像描述

Using Azure CLI使用 Azure CLI

List SSL certificates for web applications.列出 web 申请的 SSL 证书。

To build a list of SSL certificates in Azure CLI.在 Azure CLI 中构建 SSL 证书列表。

az webapp config ssl list --resource-group MyResourceGroup

在此处输入图像描述

To display the details of a web app's SSL certificate.显示 web 应用程序的 SSL 证书的详细信息。

az webapp config ssl show --resource-group MyResourceGroup --certificate-name cname.mycustomdomain.com

在此处输入图像描述

Using REST API使用 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}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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