www.awsgood.com
本教程介绍如何将 Sectigo 签发的 SSL 证书部署到 Apache,覆盖文件准备、服务器配置与部署验证全流程。
Sectigo(原 Comodo CA)性价比突出:DV 分钟级签发,OV 1-3 个工作日,EV 3-5 个工作日,保障金最高约 $50 万,通配符与多域名方案价格优势明显。
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);