首页 > 解决方案 > Azure 应用服务和应用网关 SSL 证书信息

问题描述

在我的公司中,我有一个需要更新 SSL 证书的 Azure 环境。但我没有得到任何关于他们的信息。

所以我有在 ASE 中运行的应用服务,带有应用网关。ASE 的证书已处理,我正在尝试收集有关应用服务证书和应用网关证书的所有信息。

使用 Azure CLI,在应用程序网关上运行此命令会给我很多数据,包括序列号,但不包括指纹:

$publiccertprod1= az network application-gateway ssl-cert show -g RessourceGroupName --gateway-name AppGatewayName --name CertName --query publicCertData -o tsv
echo "-----BEGIN PKCS7-----" >> publicprod1.cert; echo "${publiccertprod1}" >> publicprod1.cert; echo "-----END PKCS7-----" >> publicprod1.cert
cat publicprod1.cert | fold -w 64 | openssl pkcs7 -print_certs | openssl x509 -noout -text

另一方面,在应用服务上运行此命令会给我指纹,但不是序列号

az webapp config ssl list --resource-group AppServiceRessourceGroup

那么,我怎样才能确定它是否是相同的证书(从内部英特尔我知道它是不同的),我怎样才能获得丢失的序列号和指纹?

证书更新的内部流程要求我提供序列号,因此获得这个序列号将是巨大的。

谢谢

编辑:正如 Ked Mardemootoo 建议的那样,使用 AzAppGWCert 模块给了我所有必要的细节。你可以在这里找到它:https ://github.com/Welasco/AzureRMAppGWCert

标签: azureazure-web-app-servicessl-certificateazure-cliazure-application-gateway

解决方案


正如@Ked Mardemootoo 建议的那样,使用 AzAppGWCert 模块给了我所有必要的细节。你可以在这里找到它:https ://github.com/Welasco/AzureRMAppGWCert


推荐阅读