poem icon indicating copy to clipboard operation
poem copied to clipboard

Access to client's peer certificate in a handler

Open anatse opened this issue 2 years ago • 1 comments

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 avatar Dec 27 '22 14:12 anatse

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

sunli829 avatar Dec 29 '22 02:12 sunli829