Skip to content

Bugfix- wolf ssl add0 chain cert not incrementing certchain and causing TLS1.3 to fail#10517

Open
Roy-Carter wants to merge 2 commits into
wolfSSL:masterfrom
Roy-Carter:bugfix/wolfSSL_add0_chain_cert_not_incrementing
Open

Bugfix- wolf ssl add0 chain cert not incrementing certchain and causing TLS1.3 to fail#10517
Roy-Carter wants to merge 2 commits into
wolfSSL:masterfrom
Roy-Carter:bugfix/wolfSSL_add0_chain_cert_not_incrementing

Conversation

@Roy-Carter
Copy link
Copy Markdown
Contributor

Description

in TLS 1.3 handshake we're dependent on the cert chain cnt in SendTls13Certificate . not updating the chain count upon using SSL_add0_chain_cert made TLS 1.3 to leave with leaf-only certificate and then peer rejected the chain and handshake failed.

Testing

Tested it on my platform after encountering the handshake bug as part of migrating from openssl -> wolfssl + made a simple unitest for it

Checklist

  • [* ] added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

…n SendTls13Certificate not updating the chain count made TLS 1.3 handshake fail and leave with leaft-only certficiate and then peer rejected the chain
@Roy-Carter
Copy link
Copy Markdown
Contributor Author

@julek-wolfssl as we discussed on the ticket this is the PR for the bug in add0 function + added a test for it

@wolfSSL-Bot
Copy link
Copy Markdown

Can one of the admins verify this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants