How can I get the real cliente certificate from the client using mTLS? I need a sha256 fingerprint of that certificate to validate it #2468
-
I'm using the mTLS feature and it works. Is it possible to retrieve the pem certificate from the client in rocket? thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
I'd really like to know the answer to this too. |
Beta Was this translation helpful? Give feedback.
-
The certificate type implements |
Beta Was this translation helpful? Give feedback.
-
Thanks @SergioBenitez - from what I can tell, this is the raw bytes of the TbsCertificate - not the full certificate raw bytes, required for getting a SHA1/SHA256 fingerprint. |
Beta Was this translation helpful? Give feedback.
-
I've just pushed 23bf83d, which adds |
Beta Was this translation helpful? Give feedback.
I've just pushed 23bf83d, which adds
Certificate::as_bytes()
, returning the raw certificate data.