gpt4 book ai didi

Azure SSL 证书

转载 作者:太空宇宙 更新时间:2023-11-03 12:58:02 25 4
gpt4 key购买 nike

我在将 SSL 证书上传到 Azure 时遇到问题。我有一份来自 GoDaddy 的高级证书,该证书去年一直在 IIS 中运行。当我们迁移到 Azure 时,我将其导出到 PFX,转到 Azure 将其添加到我的 Web 应用程序,并收到以下错误消息:

Failed to update web app settings
Failed to update web app settings for [APP_NAME]: The password is incorrect, or the certificate is not valid

我尝试过以下方法:

  • 确保密码正确
  • 从 IIS 导出为 pfx
  • 从 MMC 导出为 pfx,并提供完整路径

它们都有相同的结果和错误消息。有人有什么想法吗?

最佳答案

我遇到了类似的问题,我设法通过使用 powershell 将现有的 PFX 导入到本地证书存储中,然后再次导出来解决它。然后可以将生成的 PFX 导入到 Azure 中。过去我会使用 IIS 来执行此操作,但由于某种原因 IIS 无法再正确导出 PFX 文件。

以下是我使用的命令:(通过在 powershell 中执行“cd cert:”转到证书存储。)

Import-PfxCertificate -FilePath C:\temp\a.pfx -CertStoreLocation Cert:\LocalMachine\My -Password (ConvertTo-SecureString -String 'xxxxx' -AsPlainText -Force) -Exportable

Export-PfxCertificate -Cert Microsoft.PowerShell.Security\Certificate::LocalMachine\My\0F84B10946C762AC4153E7A28DAB36C7108F92A0 -FilePath 'C:\temp\outfile.pfx' -Password (ConvertTo-SecureString -String 'xxxxx' -AsPlainText -Force)

关于Azure SSL 证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29952874/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com