【问题标题】:Instaling SSL on apache2在 apache2 上安装 SSL
【发布时间】:2016-05-08 11:40:25
【问题描述】:

我已从 Comodo 获得 SSL 证书。我尝试使用以下步骤将其安装在 apache 服务器上:

  1. 将这些文件上传到/home/perica目录:

    bedbids_com.crt

    bedbids_com.key

    bedbids_com.ca-bundle

  2. 编辑/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

【讨论】:

    猜你喜欢
    • 2015-11-20
    • 2013-07-15
    • 1970-01-01
    • 2017-04-07
    • 2020-05-27
    • 1970-01-01
    • 2015-10-30
    • 2014-07-04
    • 1970-01-01
    相关资源
    最近更新 更多