-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
I think it is quite common to work with thumbprints when handling x509. For example, JWKS has the following standard claims among others:
x5t: thumbprint using sha1x5t#S256: thumbprint using sha256
We can, currently, generate a thumbprint by doing something like:
:crypto.hash(:sha, X509.Certificate.to_der(cert)) |> Base.url_encode64(padding: false)I've spent a while trying to find how openssl generates the thumbprint with some confusing answers. It would be great if this was built-in to avoid confusing implementations.
Thanks for your wonderful work!
Metadata
Metadata
Assignees
Labels
No labels