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

Access to client's peer certificate in a handler #468

Open
anatse opened this issue Dec 27, 2022 · 1 comment
Open

Access to client's peer certificate in a handler #468

anatse opened this issue Dec 27, 2022 · 1 comment
Labels
question Further information is requested

Comments

@anatse
Copy link

anatse commented Dec 27, 2022

Hi

Background: I want to authenticate a client using the X509 certificate. For security reasons I need to have access to some fields in the cert and process them.

I am using poem with rustls and I am struggling with a way to access certficate in the handler.

I would really appreciate a working example of accessing the cert in a handler (or passing some data from the cert to the handler) if it's possible.

Thanks in advance!

@anatse anatse added the question Further information is requested label Dec 27, 2022
@sunli829
Copy link
Collaborator

sunli829 commented Dec 29, 2022

There's no way to do this yet, I'll think how to do it.

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

No branches or pull requests

2 participants