[英]Instaling SSL on apache2
I've obtained an SSL certificate from Comodo. 我已经从Comodo获得了SSL证书。 I try to install it on an apache server using the following steps:
我尝试使用以下步骤将其安装在apache服务器上:
Upload to the directory /home/perica
these files: 将以下文件上传到目录
/home/perica
:
bedbids_com.crt
bedbids_com.key
bedbids_com.ca-bundle
Edit /etc/apache2/sites-available/default-ssl.conf
with 使用以下命令编辑
/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"
but at this point ssl is still not enabled. 但目前仍未启用ssl。 What do I miss?
我想念什么?
Check that the ssl module is enabled with: 检查ssl模块是否已启用:
sudo a2enmod ssl
(assuming you use a debian based linux distribution) (假设您使用的是基于Debian的Linux发行版)
Then you should add to your configuration file something like: 然后,您应该将以下内容添加到配置文件中:
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>
You will find detailled instructions here: http://wiki.vpslink.com/Enable_SSL_on_Apache2 您将在此处找到详细的说明: http ://wiki.vpslink.com/Enable_SSL_on_Apache2
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.