【问题标题】:Instaling SSL on apache2在 apache2 上安装 SSL
【发布时间】:2016-05-08 11:40:25
【问题描述】:
我已从 Comodo 获得 SSL 证书。我尝试使用以下步骤将其安装在 apache 服务器上:
-
将这些文件上传到/home/perica目录:
bedbids_com.crt
bedbids_com.key
bedbids_com.ca-bundle
-
编辑/etc/apache2/sites-available/default-ssl.conf
SSLEngine on
SSLCertificateFile "/home/perica/bedbids_com.crt"
SSLCertificateKeyFile "/home/perica/bedbids.key"
SSLCertificateChainFile "/home/perica/bedbids_com.ca-bundle"
但此时 ssl 仍未启用。我想念什么?
【问题讨论】:
标签:
apache
ssl
configuration
apache2
crt
【解决方案1】:
检查是否启用了 ssl 模块:
sudo a2enmod ssl
(假设您使用基于 debian 的 linux 发行版)
然后您应该在配置文件中添加如下内容:
NameVirtualHost [your IP address]:443
< VirtualHost [your IP address]:443>
ServerSignature On
SSLCertificateFile /path/to/the/certificate/from/your/certificate/company/apache.crt
SSLCertificateKeyFile /path/to/the/file/created/in/step/1.key [can be a .pem file too I think]
SSLCertificateChainFile /path/to/intermediate/cert.crt [optional, only if yout certificate compay provides you with one]
SSLEngine On
</VirtualHost>
您将在此处找到详细说明:
http://wiki.vpslink.com/Enable_SSL_on_Apache2