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

Unable to Generate .pfx File For Azure App

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

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

    openssl genrsa -des3 -out privatekey.key 2048

  2. 生成 csr:

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

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

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

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

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

我们决定使用在 Azure 门户本身上购买的证书。只是我们没时间弄清楚。