From 1b2bb83eeb19ae9420204431676855c88473a89d Mon Sep 17 00:00:00 2001 From: Slawek Koszewski Date: Sun, 28 Dec 2025 18:14:53 +0100 Subject: [PATCH] Add instructions for creating and using a self-signed SSL certificate in README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 +```