无法为Azure应用程序生成.pfx文件

发布于 2025-01-12 14:44:19 字数 653 浏览 3 评论 0原文

我们正在尝试更新 Azure Web 应用程序中的 SSL 证书。根据 私有证书要求 我们现在需要对私钥使用三重 DES。以下是我正在执行的步骤:

  1. 使用三重 DES 在我的电脑上生成私钥:

    openssl genrsa -des3 -out privatekey.key 2048

  2. 生成 csr:

    openssl req -new -key privatekey.key -out mycsr.csr

  3. 在 Godaddy Portal 上重新生成证书密钥。

  4. 使用新的 crt 文件生成 pfx:

    openssl pkcs12 -export -out cert.pfx -inkey privatekey.key -in mycert.crt

不幸的是,Azure 门户不接受生成的证书。我收到错误消息“密码不正确,或证书无效”。

We are trying to update an SSL certificate in our Azure Web App. Accordingly to the Private Certificate Requirements we need to use triple DES for a private key now. Here's are steps that I'm doing:

  1. Generate private key on my PC using triple DES:

    openssl genrsa -des3 -out privatekey.key 2048

  2. Generate csr:

    openssl req -new -key privatekey.key -out mycsr.csr

  3. Re-key certificate on Godaddy Portal.

  4. Using new crt-file generate a pfx:

    openssl pkcs12 -export -out cert.pfx -inkey privatekey.key -in mycert.crt

Unfortunately, generated certificate is not accepted by Azure portal. I'm getting an error message "The password is incorrect, or the certificate is not valid".

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

淡淡的优雅 2025-01-19 14:44:19

Ubuntu 22.04 使用 yescrypt 哈希算法。尝试生成 pfx

Ubuntu 22.04 uses a yescrypt hashing algorythm. Try to generate the pfx on

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文