X9.146: Sign certificates with the right key
Hi all,
The hybrid certificate X9.146 examples use the wrong private key for creating the alternative signature of the server certificate. The alternative signature must be created with the issuer's private key (as already indicated in the code comments), not with the private key related to the actual certificate. In case of the server certificate generation, this was not the case (the server key is used).
Okay to test. Contributor agreement on file.
Hi @Frauschi ,
Thank yo so much for this contribution. At first glance your change looks great and I'm pretty sure I will approve it, however, I think it depends on a corresponding PR in wolfSSL. I'll wait for that one to go in first. (https://github.com/wolfSSL/wolfssl/pull/7286)
Hi @Frauschi , I hope you don't mind that I added a commit to this PR. I had to do the work anyways so to save you the trouble of doing it as well, I just pushed my change. For an explanation as to why I did this, please see your wolfssl PR.
@wolfSSL-Bot , This is good to merge.