SSL for flask local development
Recently at HasGeek we moved all our web application to https. So I wanted to have all my development environment urls to have https.
How to have https in flask app
Method 1
from flask import Flask app = Flask(__name__) app.run('0.0.0.0', debug=True, port=8100, ssl_context='adhoc') In the above piece of code, ssl_context variable is passed to werkezug.run_simple which creates SSL certificates using OpenSSL, you may need to install pyopenssl. I had issues with this method, so I generated self signed certificate.
[Read More]