Search code examples
amazon-web-servicessslamazon-ec2httpsbitnami

AWS Bitnami enable https on Ec2


I currently have a MEAN stack app powered by Bitnami running on an Ec2 instance. The site works fine except for https.

What I've done so far:

checked instance to ensure port 443 is enabled created certificate using openssl. I now have 3 files *.crt, *.key, *.csr. I put my certificate files in /opt/bitnami/apache2/conf/ directory. edited 3 lines in /opt/bitnami/apache2/conf/extra/httpd-ssl.conf to point to the correct files. restarted server using the command: /opt/bitnami/ctlscript.sh restart

Now when I go to https://my-site-name I just get an error saying the connection was unexpectedly closed.

This is my first time deploying to AWS and I'm not really sure where to go from here. I don't know what steps I missed or even how to go about finding the root of the problem.


Solution

  • The issue with your use case is your were following incorrect guide please use this guide which is for AWS EC2 instance and will work correctly.

    https://wiki.bitnami.com/Components/Apache#How_to_enable_HTTPS_support_with_SSL_certificates