azure - 覆盖 Azure 中的现有 SSL 绑定
问题描述
我正在尝试在我的 azure Web 应用程序上更新证书。上传成功,现在我在门户的 SSL 部分有 2 个可用的证书。
但是,当我尝试使用新证书为同一域创建新绑定时 - 添加绑定按钮被禁用:
我做错了什么?
解决方案
以下更新证书步骤:
- 上传新证书。
- 将新证书绑定到您想要的自定义域,而不删除旧证书。此操作替换绑定而不是删除旧绑定。
- 删除旧证书。
看来您不需要删除绑定,您可以尝试使用 PowerShell 将证书绑定到 Web 应用程序。https://docs.microsoft.com/en-us/powershell/module/az.websites/new-azwebappsslbinding?view=azps-2.0.0
New-AzWebAppSSLBinding -ResourceGroupName "ContosoResourceGroup" -WebAppName "ContosoWebApp" -Thumbprint "E3A38EBA60CAA1C162785A2E1C44A15AD450199C3" -Name "www.contoso.com"
顺便说一句,如果您使用应用服务证书,您可以随时开启自动续订您的证书。https://docs.microsoft.com/en-us/azure/app-service/web-sites-purchase-ssl-web-site#renew-certificate
推荐阅读
- python - 使用 Pydantic 解压嵌套 JSON 时跳过 dict 级别
- python - 如何在 Telethon 库中收到来自聊天的新消息后立即断开客户端
- python - Python替换和删除列表中的重复单词
- android - 组合到现有项目中,无虚方法 Int
- jquery - 如何在总和数据表中包含货币格式
- csv - 数据工厂中的双引号、逗号和转义符
- amazon-s3 - 将 Ganglia 日志保存到 s3
- node.js - DynamoDB - 如果不存在则创建主键和属性,否则获取
- apollo-server - 使用 ApolloServer 从 type-graphql 解析器读取请求标头
- mongodb - Mongodb由多个数组聚合组