简体   繁体   中英

Installing a SSL certificate on Amazon EC2 Instance

I am new on AWS.

I have already created an EC2 Ubuntu Instance with Apache2.

On the other hand I have a domain and a SSL certificate for that domain.

I have also created a Routed 53 hosted zone. I can now access the EC2 Instance with any browser just entering my domain name.

Now I need to install and setup the SSL certificate on the EC2 Instance.

I have been searching for hours for a good tutorial or documentation that shows me what steps to follow to install the SSL certificate.

Please, I would appreciate any help, a link to a working tutorial or documentation for my needs.

Your EC2 is none other than blank machine.

For apache2 setting up SSL certificate you have to following step mention in link

https://www.ssls.com/knowledgebase/how-to-install-an-ssl-certificate-on-apache/

Make sure your ssl configuration should be inside /etc/apache2/sites-enabled/default-ssl.conf .

In this file all ssl certificate mappping and vhost entry for domain have to create to use https protocol using 443 port.

Make sure you have enable 443 port in your EC2 security group in AWS.

<VirtualHost [IP ADDRESS]:443>
ServerAdmin webmaster@ssl-tutorials.com
DocumentRoot var/www/html/example/
ServerName www.example.com
ErrorLog www/home/logs/error_log
SSLEngine on
SSLCertificateFile /etc/ssl/ssl-tutorials_com.crt
SSLCertificateKeyFile /etc/ssl/ssl-tutorials.key
SSLCertificateChainFile /etc/ssl/ssl-tutorials_com.ca-bundle
</VirtualHost> 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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