Amazon EC2 + SSL

前端 未结 3 501
慢半拍i
慢半拍i 2020-12-28 16:45

I want to enable ssl on an EC2 instance. I know how to install third party SSL. I have also enabled ssl in security group.

I just want to use a url like this: ec2-xx

3条回答
  •  星月不相逢
    2020-12-28 17:45

    1. Create a self signed SSL certificate using openssl. CHeck this link for more information.
    2. Install that certificate on your web server. As you have mentioned LAMP, I guess it is Apache. So check this link for installing SSL to Apache.

    In case you reboot your instance, you will get a different public DNS so be aware of this. OR attach an elastic IP address to your instance.

    But When I add https to URL, nothing happens.

    Correct, your web server needs to have SSL certificate and private key installed to serve traffic on https. Once it is done, you should be good to go. Also, if you use self-signed cert, then your web browser will complain about non-trusted certificate. You can ignore that warning and proceed to access the web page.

提交回复
热议问题