Add tests for PKCS#8 private keys#26898
Conversation
66f3032 to
57fd106
Compare
bnoordhuis
left a comment
There was a problem hiding this comment.
LGTM, thanks for picking this up!
test/parallel/test-crypto-rsa-dsa.js
Outdated
|
|
||
| assert.strictEqual(verify.verify(dsaPubPem, signature, 'hex'), true); | ||
|
|
||
| // Test the legacy 'DSS1' name. |
There was a problem hiding this comment.
I'd be okay with dropping this, that's already checked around line 250.
There was a problem hiding this comment.
In my curious, is DSS1 same as SHA-1? 🤔
I found following line in Node.js Project but I couldn't find what happened historically about the relationship between DSS1 and SHA-1 from Google search.
Line 4459 in b4f58c2
There was a problem hiding this comment.
DSS1 stands for DSA (Digital Signature Algorithm) with SHA-1 as the hash function. It's a long-deprecated (and now removed) openssl synonym from when openssl conflated public key algorithms with their hash functions.
There was a problem hiding this comment.
I see. Thanks 👍 👍 👍
|
@sasurau4 the problem about the test suite can be circumvented by running the tests directly with: |
|
@BridgeAR The tests succeeded when I ran |
|
@tniessen I fixed pointed out. Thanks for your review 👍 |
|
Landed in 85546c2. |
I added tests for unencrypted PKCS#8 private keys.
I generated the test PKCS#8 private keys by converting
test_rsa_privkey,pemandtest_dsa_privkey.pembyopensslcommand.Refs: #24928
I ranmake -j4 testcommand, but failed.detailed error log
My environment is Ubuntu 18.04.2 LTS and succeeded when I ranmake test-onlycommand.Please help me🙏Updated: solved the above problem.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes