Azure:没有证书与所选主机名匹配,即使它有证书

Azure : No certificates match the selected hostname even it has the certificate

我已经设置了我的自定义通配符域,它是与 SSL 证书一起购买的。我还使用我的 Azure 应用程序设置了这些。

限制是我需要删除证书才能将我的 azure 应用程序从一个订阅移动到另一个订阅。所以我删除了证书,然后将我的 azure 应用移到了另一个订阅。

现在,如果我再次尝试添加证书,我将无法获得适用于我的域(通配符)的任何证书。

我尝试添加像

这样的证书
  1. 自定义域 -> 添加绑定
    结果为 没有证书匹配所选主机名
  2. SSL 设置-> 添加 SSL 绑定
    结果与 没有证书匹配所选主机名
  3. SSL设置-私有证书->导入私有证书
    结果为 未找到有效证书

我发现了类似的 ,但不幸的是,它对我不起作用。我认为与某些 UI 错误有关?

根据您的描述,您会将应用服务证书移动到另一个订阅。

limitations for moving App Service resources 适用于上传的证书,不适用于应用服务证书。您可以无限制地将应用服务证书移动到新的资源组或订阅。

When moving a Web App across subscriptions, the following limitations apply:

1.The destination resource group must not have any existing App Service resources.

Note:App Service resources include:Web Apps,App Service plans,Uploaded or imported SSL certificates,App Service Environments

2.All App Service resources in the resource group must be moved together.

3.App Service resources can only be moved from the resource group in which they were originally created. If an App Service resource is no longer in its original resource group, it must be moved back to that original resource group first, and then it can be moved across subscriptions.

如果你想在 Azure 的不同订阅中使用你的应用服务证书,你可以参考这个article

你说你需要删除证书才能将你的 Azure 应用程序从一个订阅转移到另一个订阅。我想您包含了从外部购买并上传到应用程序的 SSL 证书。 您只需在移动网络应用程序后在新订阅中再次上传您的证书作为原始上传您的 SSL 证书到网络应用程序。

关于错误消息:没有与所选主机名匹配的证书。您需要检查这些:

首先,您必须有一个链接到 Azure Web 应用程序的自定义域才能配置 SSL 绑定。其次,为其创建证书的域必须与自定义域匹配。

参考:My SSL Certificate doesn’t work on Azure Websites