poem
poem copied to clipboard
Access to client's peer certificate in a handler
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!
There's no way to do this yet, I'll think how to do it.