Azure 应用服务和应用网关 SSL 证书信息
Azure App Service and App gateway SSL certificates informations
我公司有一个 Azure 环境,需要更新 SSL 证书。但是我没有得到关于他们的任何信息。
所以我在 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
正如@Ked Mardemootoo 所建议的,使用 AzAppGWCert 模块为我提供了所有必要的详细信息。你可以在这里找到它:https://github.com/Welasco/AzureRMAppGWCert
谢谢@Ked Mardemootoo,您的见解帮了大忙。
使用下面的 PoweShell
脚本来获取 Thumbprint
和 SerialNumber
在脚本之前你可以安装所需的模块AzureRMAPPGWCert
Install-Module -Name AzureRMAppGWCert
使用下面的代码获取证书值
Connect-AzureRmAccount
Import-Module AzureRMAppGWCert
Get-AzureRMAppGWCert -RG <RGName> -AppGWName <AppGatewayName>
参考了解更多信息
我公司有一个 Azure 环境,需要更新 SSL 证书。但是我没有得到关于他们的任何信息。
所以我在 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
正如@Ked Mardemootoo 所建议的,使用 AzAppGWCert 模块为我提供了所有必要的详细信息。你可以在这里找到它:https://github.com/Welasco/AzureRMAppGWCert
谢谢@Ked Mardemootoo,您的见解帮了大忙。
使用下面的 PoweShell
脚本来获取 Thumbprint
和 SerialNumber
在脚本之前你可以安装所需的模块AzureRMAPPGWCert
Install-Module -Name AzureRMAppGWCert
使用下面的代码获取证书值
Connect-AzureRmAccount
Import-Module AzureRMAppGWCert
Get-AzureRMAppGWCert -RG <RGName> -AppGWName <AppGatewayName>
参考