Repository navigation
test: more tests for PKCS#8 private keys #24928
Copy link
Copy link
Closed
Labels
cryptoIssues and PRs related to the crypto subsystem.Issues and PRs related to the crypto subsystem.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.testIssues and PRs related to Node.js core tests and test infrastructure.Issues and PRs related to Node.js core tests and test infrastructure.
Description
Activity
- addedhelp wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.cryptoIssues and PRs related to the crypto subsystem.Issues and PRs related to the crypto subsystem.testIssues and PRs related to Node.js core tests and test infrastructure.Issues and PRs related to Node.js core tests and test infrastructure.
on Dec 9, 2018 @bnoordhuis If you can be a mentor and guide me, I would like to help out on this issue.
@uttampawar Thanks. Just ask questions and I'll try to answer them.
@uttampawar
Hi! Do you need help with this task?Can I work on this issue?
- added a commit that references this issue
on Mar 28, 2019 - added a commit that references this issue
on Apr 5, 2019 - added 2 commits that reference this issue
on May 16, 2019 Hi,
Is this available to work on?
@bnoordhuis Is this still pending? The C++ coverage seems to be pretty good around key parsing, but it does not necessarily reflect all possible inputs.
Yes, 85546c2 resolves this - it should have had a Fixes: tag, not a Refs: tag. I'll close this out, thanks.
Metadata
Metadata
Assignees
Labels
cryptoIssues and PRs related to the crypto subsystem.Issues and PRs related to the crypto subsystem.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.testIssues and PRs related to Node.js core tests and test infrastructure.Issues and PRs related to Node.js core tests and test infrastructure.
We currently lack coverage for unencrypted PKCS#8 private keys (
-----BEGIN PRIVATE KEY-----) with the sole exception oftest/fixtures/foafssl.keyused intest/parallel/test-https-foafssl.js.Compare PKCS#1 private keys (
-----BEGIN RSA PRIVATE KEY-----) for which we have ample coverage.I count three tests that cover encrypted PKCS#8 keys (
-----BEGIN ENCRYPTED PRIVATE KEY-----):For unencrypted PKCS#8, it would be nice to have tests for at least RSA and DSA, with and without PEM attributes for bonus points. See
test/fixtures/foafssl.keyfor an example of attributes.cc @sam-github - possibly relevant to your interests