【问题标题】:SSL Apache csr .pem .key on GoDaddyGoDaddy 上的 SSL Apache csr .pem .key
【发布时间】:2022-08-11 17:56:21
【问题描述】:

早安伙计们

我从来没有真正处理过 apache 服务器上的 SSL。 我在 godaddy 上为我的网站找到了域名。下载 CentOS Apache 压缩包。

这包括

  1. gd_bundle .crt
  2. hereismysite.crt
  3. blahblah.pem

    现在,当前具有 SSL 的文件夹有

    1. gd_bundle .crt
    2. hereismysite.crt
    3. blahblah.key

      我在 Godaddy 上为 CSR 准备了这个密钥?

      我对如何执行此步骤以及如何处理它感到有些困惑?

      用新文件替换文件后,我在这里遵循了一些 apache 说明。 (我也刚刚替换了密钥中的 .pem 信息)。在 apachectl restart 时所有服务器都崩溃了,所以把旧的放回去并重新启动

      https://ae.godaddy.com/help/manually-install-an-ssl-certificate-on-my-apache-server-centos-5238

      我很困惑。

      任何人都可以为像我这样的假人分解它吗?

    标签: apache ssl godaddy-api


    【解决方案1】:

    要配置您的站点,您需要以下内容:

    1. 私钥
    2. 公共证书
    3. 包含中间证书的 CA 捆绑包(并非总是必需的)

      godaddy 的 zip 包含以下内容:

      1. gd_bundle.crt - 这是CA bundle
      2. hereismysite.crt - 这是您的网站由 godaddy 签名的公共证书
      3. blahblah.pem - 这与不同格式的 hereismysite.crt 相同(我无法验证他们为什么这样做,也许是方便......?)

        在您的服务器上,您有:

        1. gd_bundle.crt - 同上
        2. hereismysite.crt - 同上
        3. blahblah.key - 您的私钥。这是在 CSR 过程中生成的。如果您没有或丢失了这个文件,那么您需要按照您在帖子中提到的那样重新输入您的证书。

          将所有这些放在一起,您的 Apache 配置将如下所示:

          <VirtualHost *:443>
              ServerName www.example.com
              SSLEngine on
              SSLCertificateFile "/path/to/hereismysite.crt"
              SSLCertificateKeyFile "/path/to/blahblah.key"
          </VirtualHost>
          

          另见:https://bofeng.github.io/post/godaddy-ssl-cert-nginx/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-01-18
      • 1970-01-01
      • 2017-01-10
      • 1970-01-01
      • 2021-02-27
      • 2021-06-04
      • 2020-11-01
      相关资源
      最近更新 更多