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

node:crypto private KeyObject tracking issue #21124

Closed
21 of 37 tasks
littledivy opened this issue Nov 9, 2023 · 1 comment · Fixed by #24463
Closed
21 of 37 tasks

node:crypto private KeyObject tracking issue #21124

littledivy opened this issue Nov 9, 2023 · 1 comment · Fixed by #24463
Assignees
Labels
crypto Related to node:crypto or WebCrypto good first issue Good for newcomers node API Related to various "node:*" modules APIs node compat

Comments

@littledivy
Copy link
Member

  • PrivateKey#asymmetricKeyDetails
  • PrivateKey#asymmetricKeyType
  • PrivateKey#export
  • createPrivateKey
    • RSA
      • pem
        • pkcs8 (PRIVATE KEY)
        • pkcs1 (RSA PRIVATE KEY)
      • der
        • pkcs1
        • pkcs8
        • sec1
      • jwk
    • RSA-PSS
      • pem
        • pkcs8 (PRIVATE KEY)
        • pkcs1 (RSA PRIVATE KEY)
      • der
        • pkcs1
        • pkcs8
        • sec1
      • jwk
    • EC
      • pem
        • pkcs8
        • pkcs1
      • der
        • pkcs1
        • pkcs8
        • sec1
      • jwk
    • DSA
    • x25519
    • x448
    • ed25519
    • ed448
    • dh

Initial PR: #20981

@littledivy littledivy self-assigned this Nov 9, 2023
@littledivy littledivy added the good first issue Good for newcomers label Nov 10, 2023
littledivy added a commit that referenced this issue Dec 3, 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`

---------

Signed-off-by: Divy Srivastava <dj.srivastava23@gmail.com>
@muddlebee
Copy link
Contributor

@littledivy is there anything I can pick up from here? 👀

@bartlomieju bartlomieju added the node API Related to various "node:*" modules APIs label Mar 4, 2024
littledivy added a commit that referenced this issue Apr 29, 2024
Initial support for exporting rsa public KeyObject.

Current assumption is that RSA keys are stored in pkcs1 der format in
key storage.

Ref #23471 
Ref #18928
Ref #21124
@lucacasonato lucacasonato added the crypto Related to node:crypto or WebCrypto label Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crypto Related to node:crypto or WebCrypto good first issue Good for newcomers node API Related to various "node:*" modules APIs node compat
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants