Skip to content
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

explain in README.md how to get the fingerprint of a parsed certificate #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rogierschouten
Copy link

No description provided.

const ed25519Cert = Certificate.fromPEM(fs.readFileSync('./test/cert/ed25519-server-cert.pem'))

const shasum = crypto.createHash('sha1');
shasum.update(parsed.raw);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parsed should be ed25519Cert

@polunzh
Copy link

polunzh commented Sep 27, 2020

thanks, the doc helped me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants