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

fix(ext/node): sign with PEM private keys #21287

Merged
merged 8 commits into from
Dec 3, 2023

Conversation

littledivy
Copy link
Member

@littledivy littledivy commented Nov 21, 2023

Add support for signing with a RSA PEM private key: pkcs8 and pkcs1.

Fixes #18972
Ref #21124

Verified fix with npm:sshpk. Unverfied but fixes npm:google-auth-library, npm:web-push & oracle/oci-typescript-sdk

@littledivy littledivy changed the title fix(ext/node): sign with private keys fix(ext/node): sign with PEM private keys Nov 21, 2023
@mmastrac
Copy link
Contributor

Sweet. This will also likely fix JWT signing with default keys that github provides for application integration.

@littledivy littledivy marked this pull request as ready for review November 23, 2023 11:43
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

The fix looks good, but could you add a test that exercises this?

Signed-off-by: Divy Srivastava <dj.srivastava23@gmail.com>
@littledivy littledivy merged commit 32438d2 into denoland:main Dec 3, 2023
14 checks passed
@littledivy littledivy deleted the pkey_sign branch December 3, 2023 04:28
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.

Invalid RSA private key crypto.sign()
3 participants