hypercorn
hypercorn copied to clipboard
HTTP/3 [ Password was not given but private key is encrypted ]
some thing related to the udp protocol is keeping to fail and h3 is not served
may be a key passphrase is not added

# this is my config => run : python asgi.py
from pathlib import Path
from fastapi import FastAPI
app = FastAPI()
if __name__ == '__main__':
import asyncio
from hypercorn.config import Config
from hypercorn.asyncio import serve
config = Config()
config.insecure_bind = ["0.0.0.0:80"]
config.bind = ["0.0.0.0:443"]
# here the issue is regenerated {always}
# config.quic_bind = ["0.0.0.0:43"]
config.keyfile = Path('...') # pass/to/key/file
config.certfile = Path('...') # pass/to/cert/file
config.keyfile_password = open(Path('...')).read().strip() # pass/to/passphtase/only/containing/file
asyncio.run(serve(app, config))
note : runnig from inside docker
python:slim
(maybe) a similer issue : https://github.com/jpadilla/pyjwt/issues/320#issuecomment-353236716