I tried this tutorial (https://dev.to/rajshirolkar/fastapi-over-https-for-development-on-windows-2p7d) and then when I went to my browser but I cannot access my localhost address using https, if I try http it works but I need to use HTTPS.
Here is the code I tried:
import uvicornif __name__ == "__main__": uvicorn.run("app.api:app", host="localhost", port=8432, reload=True, ssl_keyfile="./key.pem", ssl_certfile="./cert.pem")