Skip to content

HTTP/3 [ Password was not given but private key is encrypted ] #84

Description

@Sharaf5

some thing related to the udp protocol is keeping to fail and h3 is not served

may be a key passphrase is not added

Screenshot_20220930_004647

# 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 : jpadilla/pyjwt#320 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions