如何配置 Apache 将这些文件用于 SSL?
How to configure Apache to use these files for SSL?
I know this looks like a old question, but my situation is that I have different file names in respect to what I expected and to what I see in the actual Apache2 configration, so I need a more precise answer, if possible.
我从我的 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
我不知道每个项目关联哪个文件
嗯,密钥文件显然是 .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.crt
和 RapidSSL_TLS_RSA_CA_G1.crt
的内容创建的
此外,请记住扩展并不重要,它们只是为了方便人类 user/administrator。只有内容很重要。
I know this looks like a old question, but my situation is that I have different file names in respect to what I expected and to what I see in the actual Apache2 configration, so I need a more precise answer, if possible.
我从我的 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
我不知道每个项目关联哪个文件
嗯,密钥文件显然是 .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.crt
和 RapidSSL_TLS_RSA_CA_G1.crt
此外,请记住扩展并不重要,它们只是为了方便人类 user/administrator。只有内容很重要。