【问题标题】:Azure websites with SSL on custom domains在自定义域上使用 SSL 的 Azure 网站
【发布时间】:2013-07-04 03:34:19
【问题描述】:

我有一个自定义域 customdomain.com

我在域的 DNS 中有以下内容: 一个记录: 欧洲
指向 Azure 网站配置窗格的“域名”部分中指示的 IP。

C 名称记录: awverify.emea awverify.azurewebsite.azurewebsites.net

我可以在Azure的配置中添加emea.customdomain.com,所以我猜验证是OK的。

我已为 *.customdomain.com 上传了 SSL 通配符证书 在证书部分,证书与到期日期可见: *.customdomain.com,customdomain.com

在 SSL 绑定中,我已将证书与域耦合:

emea.customdomain.com

CN=PositiveSSL CA 2, O=COMODO CA Limited, L=Salford, S=Greater Manchester, C=GB, 有效期:2013 年 5 月 9 日

SNI SSL

当我输入 https://emea.customdomain.com 时,浏览器告诉我我所指的网站显示为 *.azurewebsites.net,因此无法建立 SSL 连接。

我错过了什么?

【问题讨论】:

    标签: azure


    【解决方案1】:

    原来证书本身是错误的。

    我收到了我必须转换为 pfx 的 crt 证书。我忽略了提供私钥。 pfx 是在没有私钥的情况下构建的。 Azure 没有抱怨它,但它只是不起作用。

    我建议使用 openssl 来生成 csr(证书请求),而不是 IIS。使用 openssl,生成一个单独的私钥文件,然后您可以将其包含在 pfx 中。

    构建csr:

    openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key
    

    创建 pfx:

    openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-05-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-31
      • 1970-01-01
      • 2013-12-11
      相关资源
      最近更新 更多