Skip to content

How can I retrieve the peer certificate? #3458

Answered by robjtede
Xromern asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Xromern
Comment options

Answer selected by Xromern
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants