【问题标题】:How to configure Apache to use these files for SSL?如何配置 Apache 以将这些文件用于 SSL?
【发布时间】:2019-07-12 09:09:29
【问题描述】:

我知道这看起来是一个老问题,但我的情况是,我的文件名与我所期望的和我在实际 Apache2 配置中看到的不同,所以如果可能的话,我需要一个更准确的答案。

我从我的 SSL 证书提供商那里获得了这些文件

  • DigiCert_Global_Root_G2.crt
  • mydomain.it.crt
  • mydomain.it.csr
  • mydomain.it.key
  • mydomain.it.pfx
  • RapidSSL_TLS_RSA_CA_G1.crt

其实我的apache配置为

    SSLCertificateKeyFile /etc/apache2/ssl-conf/mydomain.it.key
    SSLCertificateFile /etc/apache2/ssl-conf/mydomain.it.cer
    SSLCertificateChainFile /etc/apache2/ssl-conf/intermediate.cer

我不知道每个项目关联到哪个文件

嗯,很明显,keyfile 就是 .key。 但是哪个 .crt 适合 CertificateFile,哪个适合 CertificateChainFile?

编辑

我阅读了https://www.ssl247.it/support/install/apache,我认为我必须使用 mydomain.it.crt 作为 SSLCertificateFile

最后一个问题是:在我的情况下,intermediate.cer 相当于什么?

【问题讨论】:

    标签: ssl apache2


    【解决方案1】:
    SSLCertificateKeyFile /etc/apache2/ssl-conf/mydomain.it.key
    SSLCertificateFile /etc/apache2/ssl-conf/mydomain.it.crt
    SSLCertificateChainFile /etc/apache2/ssl-conf/intermediate.crt
    

    intermediate.crt 是通过连接DigiCert_Global_Root_G2.crtRapidSSL_TLS_RSA_CA_G1.crt 的内容创建的

    另外,请记住,扩展并不重要,它们只是为了方便人类用户/管理员。只有内容很重要。

    【讨论】:

      猜你喜欢
      • 2014-09-02
      • 1970-01-01
      • 2016-04-13
      • 2011-05-06
      • 2012-12-23
      • 1970-01-01
      • 1970-01-01
      • 2010-09-18
      • 1970-01-01
      相关资源
      最近更新 更多