【发布时间】:2014-03-13 03:35:03
【问题描述】:
提前感谢您的帮助。
这是我第一次设置 HTTPS,我刚刚从 Comodo 获得了证书,但不知道如何处理它。证书以 .zip 文件的形式提供,其中包含以下文件:
Root CA Certificate - AddTrustExternalCARoot.crt
Intermediate CA Certificate - COMODOAddTrustServerCA.crt
Intermediate CA Certificate - COMODOExtendedValidationSecureServerCA.crt
Your COMODO EV SSL Certificate - forum_linma_com.crt
我也有文本格式的。如何设置它以便可以通过 HTTPS 访问我的 node.js 应用程序?该应用程序在带有 Ubuntu 13.10 的 EC2 实例上运行,我正在使用 SSH 访问服务器。
跟进问题
所以我仍然遇到错误。以下是相关信息:
/etc/apache2/sites-enabled/forumHTTPSconfig 的内容(启用站点的唯一文件):
<VirtualHost *:443>
ServerName forum.figma.com
SSLEnable
SSLEngine on
SSLCertificateFile /etc/apache2/forum_figma_com.crt
SSLCertificateKeyFile /home/ubuntu/.ssh/myserver.key
SSLCACertificateFile /etc/apache2/combined-ca.crt
</VirtualHost>
<IfModule mod_proxy.c>
<Proxy *>
SSLProxyEngine on
Order deny,allow
Allow from all
</Proxy>
RewriteEngine on
ProxyPass / https://127.0.0.1:3000
ProxyPassReverse /http://127.0.0.1:3000
</IfModule>
这是我尝试调用a2enmod 的结果:
ubuntu@ip-10-190-91-217:/etc/apache2/sites-enabled$ sudo a2enmod forumHTTPSconfig
ERROR: Module forumHTTPSconfig does not exist!
ubuntu@ip-10-190-91-217:/etc/apache2/sites-enabled$ sudo a2enmod mywebsite
ERROR: Module mywebsite does not exist!
知道出了什么问题吗?提前感谢您的帮助!
【问题讨论】:
-
您是如何从 Comodo 获得 .key 文件的?
标签: ubuntu ssl https amazon-ec2