Now with the node-forge update to 0.7.1 there are no errors at all (after generating and validating 10.000 certs)
Note: I had to update the tests for pkcs7. The output from node-forge and OpenSSL 1.1 is slightly different, so instead of just comparing the output I use OpenSSL to convert the pkcs7 file to a cert and compare that cert to the generated cert.
This PR will update node-forge to the latest 0.7 release in order to fix this kind of error with the self signed certificates: https://github.com/openssl/openssl/issues/4320
Steps to reproduce can be found here: https://gist.github.com/sandrinodimattia/8ef6094325e7254473a16925898ab0a1
Running the script with node-forge@0.6.33 results in this type of output (it can take some time before the error shows):
Now with the node-forge update to 0.7.1 there are no errors at all (after generating and validating 10.000 certs)