-
The data from the peer certificate is used for authentication. For example, in Node.js, I can retrieve it like this:
I tried accessing the TlsStream in middleware using bind_rustls_0_23 , but I couldn't get it to work. I would appreciate any help. |
Beta Was this translation helpful? Give feedback.
Answered by
robjtede
Aug 25, 2024
Replies: 1 comment 1 reply
-
An example of how to read client certificates is shown here: ...using an |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Xromern
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An example of how to read client certificates is shown here:
https://github.com/actix/examples/blob/0523eea2f6a8a0fad66d0fbac2e067f7a0a137c6/https-tls/rustls-client-cert/src/main.rs#L30-L70
...using an
on_connect
function which adds to the connection-level data.