Skip to content

How to calculate x5t#S256 from X509 cert in v4.x? #562

Answered by panva
suside asked this question in Q&A
Discussion options

You must be logged in to vote

How to calculate x5t#S256 from X509 cert in v4.x?

You need to do the calculation yourself. In node that's very simple

import { X509Certificate } from 'node:crypto';

const thumbprint = Buffer.from(new X509Certificate(crt).fingerprint256.replaceAll(':', ''), 'hex').toString('base64url');

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by suside
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