www.awsgood.com
本教程介绍如何将 DigiCert 签发的 SSL 证书部署到 Apache,覆盖文件准备、服务器配置与部署验证全流程。
DigiCert 是高端商业 CA,EV 审核体验业内领先,CertCentral 平台支持 API 与批量管理,银行/证券/大型电商首选,价格较高。
Apache 2.4.8+ 使用 PEM:把中间证书与站点证书合并进一个 .crt(或分开配置),私钥为 .key。老版本(2.2/2.4.8 以下)需要单独的 ChainFile。
a2enmod ssl headers
systemctl restart apache2
<VirtualHost *:443>
ServerName example.com
SSLEngine on
SSLCertificateFile /etc/ssl/example.com_fullchain.crt
SSLCertificateKeyFile /etc/ssl/example.com.key
Header always set Strict-Transport-Security "max-age=31536000"
</VirtualHost>
apachectl configtest 通过后 systemctl reload apache2。
浏览器访问 https://example.com 确认小锁正常;openssl s_client -connect example.com:443 -servername example.com 核对证书链完整。
openssl x509/rsa -noout -modulus | openssl md5);