Replies: 2 comments 1 reply
-
I've made some progress. Reading this: I assume the issue sits with uvicorn, not exposing the cert. This monkeypatch works:
Which allows the subject DN to be retrieved as follows:
and t is a tuple of data, which is a litltle tedious to parse but better than nothing. It's both a brilliant and horrible hack - is there a better way? :) |
Beta Was this translation helpful? Give feedback.
1 reply
-
any update on this issue? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
uvicorn provides the SSL front end and manages client certificates, i.e.
But there appears to be no way to extract the Distinguised Name from the client certifcate within FastAPI, which I assume means uvicorn does not pass it.
Operating System
Linux
Operating System Details
Ubuntu, but any.
FastAPI Version
0.79.0
Python Version
3.7
Additional Context
uvicorn 0.18.2.
Beta Was this translation helpful? Give feedback.
All reactions