简体   繁体   English

如何在我的 ec2 ami apache 服务器上启用 https

[英]How to I enable https on my ec2 ami apache server

I have bought a an ssl certifcate from a respected authority on the internet.我从互联网上受人尊敬的权威那里购买了 ssl 证书。 I am just having problems installing the certificate and enabling https on my server.我只是在安装证书和在我的服务器上启用 https 时遇到问题。 I have only been given the certificate and the private key.我只得到了证书和私钥。 How do I go about copying these files to my server and enabling https.如何将这些文件复制到我的服务器并启用 https。

NOTE: I am running an amazon micro instance注意:我正在运行一个亚马逊微型实例

First try to install mod_ssl on your server with the following command首先尝试使用以下命令在您的服务器上安装 mod_ssl

 yum install mod_ssl 

Once it's installed you can update your httpd configuration file with your SSL certificate details.安装后,您可以使用 SSL 证书详细信息更新 httpd 配置文件。

SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/mydomain.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/mydomain.key

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM