gpt4 book ai didi

ssl - 如何配置 Apache 将这些文件用于 SSL?

转载 作者:太空宇宙 更新时间:2023-11-03 13:58:47 24 4
gpt4 key购买 nike

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

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

  • DigiCert_Global_Root_G2.crt
  • 我的域名.it.crt
  • 我的域名.it.csr
  • 我的域名.it.key
  • 我的域名.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

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

嗯, key 文件显然是 .key。但是,对于 CertificateFile 和 CertificateChainFile,哪个是正确的 .crt?

编辑

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

最后的疑问是:在我的情况下,什么是 intermediate.cer 等价物?

最佳答案

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 的内容创建的

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

关于ssl - 如何配置 Apache 将这些文件用于 SSL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57003769/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com