Dexus / pem

Create private keys and certificates with node.js
Other
570 stars 129 forks source link

Verify signing chain fix #306

Closed dzmitry-kankalovich closed 3 years ago

dzmitry-kankalovich commented 3 years ago

This PR takes on the raised issue https://github.com/Dexus/pem/issues/303.

Basically, there were 3 problems:

So verifySigningChain was never working correctly in the general case. The simplest forms like Root CA -> Leaf or Root CA -> Int CA -> Leaf might be verified correctly, but anything more complicated than that - won't.

Dexus commented 3 years ago

Thank you, will review this after my vacation.

dzmitry-kankalovich commented 3 years ago

Cheers. I've also added a specific unit test to demo how the fix will allow trust in more complex cases.