diff --git a/README.md b/README.md index 44850dc..5c367d4 100644 --- a/README.md +++ b/README.md @@ -28,3 +28,17 @@ Copy the `app.py` file to your desired location, and run it using Python: ```bash flask run app.py ``` + +## Self-Signed SSL Certificate (Optional) + +To run the Flask app with HTTPS, you can create a self-signed SSL certificate: + +```bash +openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj "/CN=localhost" -addext "subjectAltName=DNS:localhost" +``` + +Then run the Flask app with SSL context: + +```bash +flask run --cert=cert.pem --key=key.pem +```