azure - 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
解决方案
正如@Ked Mardemootoo 建议的那样,使用 AzAppGWCert 模块给了我所有必要的细节。你可以在这里找到它:https ://github.com/Welasco/AzureRMAppGWCert
推荐阅读
- javascript - 使用唯一键合并多个对象
- json - 无法从数据库中获取数据并在 VUE 脚本中使用
- rust - 如何创建将输入转换为元组的宏?
- mysql - 其他用户无法访问 docker 中的 mariadb,然后是 root
- html - 如何使用纯 CSS 在图像中创建半色调效果?
- python - Python 正则表达式中的美元符号
- html - CSS font-weight 属性只显示常规粗细
- laravel - Laravel 的 composer.lock 文件未在 docker/docker-compose 上更新
- python - Django 表单列表字段还是 json 字段?
- python - python/pandas:当“就地”不可能时,DataFrame 继承和 DataFrame 更新