0

I have written a small python application using flask. I have deployed the application on EC2 machine. Currently the application run as http. I want the application on https. How can I do it? instead of doing any modification in code like adding ssl_context?

1 Answers1

1

You shouldn't need to be touching ssl_context. What you are trying to do is to just run your web server over HTTPS.

Depending on the web server you have (Nginx, Apache etc.), this is just a case of getting/generating a SSL certificate (you can use CertBot for this - this generates certificates via LetsEncrypt).

Once you have a SSL certificate, you then need to configure your web server to use this SSL certificate (as well as allow HTTPS connections on your firewall settings).

These guides helped me in the past, but you can always look online for a guide that suits the server OS you are using:

Hope this helps!

Undesirable
  • 353
  • 2
  • 12