Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load certificates with custom function #581

Closed
maxmealy opened this issue Feb 24, 2020 · 1 comment
Closed

Load certificates with custom function #581

maxmealy opened this issue Feb 24, 2020 · 1 comment

Comments

@maxmealy
Copy link

Is it possible to point Uvicorn to a custom function to load an SSL certificate and keyfile, rather than passing in the filepaths? Or alternatively, point to a function to pass into the password argument when SSLContext.load_cert_chain is called? Thanks.

@tomchristie
Copy link
Member

Nope there's not anything like that available at the moment - you'd need to do a bit of digging around in the how to change the .ssl property on a Config() instance.

It's possible that we could accept a pull request adding something along these lines. It'd be interesting to know what kind of control Gunicorn gives you here, as thy've been around far longer than this project and might have already covered this ground.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants