首页 > 解决方案 > 覆盖 Azure 中的现有 SSL 绑定

问题描述

我正在尝试在我的 azure Web 应用程序上更新证书。上传成功,现在我在门户的 SSL 部分有 2 个可用的证书。

但是,当我尝试使用新证书为同一域创建新绑定时 - 添加绑定按钮被禁用:

在此处输入图像描述

我做错了什么?

标签: azuresslhttpsbinding

解决方案


以下更新证书步骤

  1. 上传新证书。
  2. 将新证书绑定到您想要的自定义域,而不删除旧证书。此操作替换绑定而不是删除旧绑定。
  3. 删除旧证书。

看来您不需要删除绑定,您可以尝试使用 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


推荐阅读