-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x509-cert: support for computing certificate fingerprints #1662
Comments
We don't have anything built-in for this AFAICT, however you can look at how the We should probably add such a feature so I will rename the issue title to reflect the potential new feature. |
Thanks. I'll see if I can hack something together that computes the hash of a certificate. An easy to use function directly in the Certificates structures, would be preferred in the future. |
Maybe it's a stretch, but I wonder if defining a trait that could be used for calculating cert fingerprints as well as key identifiers from SubjectPublicKeyInfo would be the thing to do. May also be useful for SignedAttributes in cms. |
The logic for calculating fingerprints from |
Hi! I've got a Certitifacate and need the fingerprint, (SHA-1/SHA-256) of the certificates.
I've found the FingerprintBytes and corresponding implementation in the spki crate, but I have no idea how to get from one to another.
Can anybody here tell me: How to I get the fingerprint of a certificate?
Thx in advance!
The text was updated successfully, but these errors were encountered: